Apparatus and method for transmitting/receiving data in an electronic device

ABSTRACT

An apparatus and a method for transmitting and/or receiving data in an electronic device are provided. According to an embodiment, an electronic device includes a communication interface and a processor. When the electronic device outputs content, the processor can transmit the content to an external electronic device using the communication interface, detect a state of the electronic device in relation to the output, select substitute content for the content at least based on the detection, determine a schedule corresponding to the substitute content, and transmit the substitute content to the external electronic device based on the schedule.

CROSS-REFERENCE TO RELATED APPLICATIONS

This application is a continuation of application Ser. No. 15/432,900,filed Feb. 14, 2017, which claims priority to a Korean patentapplication filed in the Korean Intellectual Property Office on Feb. 18,2016, and assigned Serial No. 10-2016-0019124, the entire disclosure ofwhich is hereby incorporated by reference.

BACKGROUND 1. Field

The present disclosure relates generally to an apparatus and a methodfor transmitting and/or receiving data in an electronic device.

2. Description of Related Art

With advances in wired/wireless communication networks, electronicdevices which display data visually recognized by a user on a displaycan be interconnected over the wired/wireless communication network.

The electronic devices can transmit and receive various data over thewired/wireless communication network, and one electronic device canremotely control another electronic device. Alternatively, oneelectronic device can share data with another electronic device. Such aservice for the remote control or the data sharing between theelectronic devices can include a mirroring service.

As such, during the mirroring service, the electronic devices cantransmit substitute data instead of mirroring data. Although thesubstitute data requires less resource than the mirroring data in thetransmission, current consumption of the electronic devices in thesubstitute data transmission is almost similar to current consumption ofthe mirroring data transmission and accordingly unnecessary current canbe consumed.

SUMMARY

To address the above-discussed deficiencies of the prior art, it is aprimary object of the present disclosure to provide an apparatus and itsoperating method for minimizing current consumption in substitute datatransmission.

According to one aspect of the present disclosure, an electronic deviceincludes a communication interface and a processor. When the electronicdevice outputs content, the processor can transmit the content to anexternal electronic device using the communication interface, detect astate of the electronic device in relation to the output, selectsubstitute content for the content at least based on the detection,determine a schedule corresponding to the substitute content, andtransmit the substitute content to the external electronic device basedon the schedule.

According to another aspect of the present disclosure, a method foroperating an electronic device can include, when outputting content,transmitting the content to an external electronic device, detecting astate of the electronic device in relation to the output, selectingsubstitute content for the content at least based on the state of theelectronic device, determining a schedule corresponding to thesubstitute content, and transmitting the substitute content to theexternal electronic device based on the schedule.

Other aspects, advantages, and salient features of the presentdisclosure will become apparent to those skilled in the art from thefollowing detailed description, which, taken in conjunction with theannexed drawings, discloses exemplary embodiments of the presentdisclosure.

Before undertaking the DETAILED DESCRIPTION below, it may beadvantageous to set forth definitions of certain words and phrases usedthroughout this patent document: the terms “include” and “comprise,” aswell as derivatives thereof, mean inclusion without limitation; the term“or,” is inclusive, meaning and/or; the phrases “associated with” and“associated therewith,” as well as derivatives thereof, may mean toinclude, be included within, interconnect with, contain, be containedwithin, connect to or with, couple to or with, be communicable with,cooperate with, interleave, juxtapose, be proximate to, be bound to orwith, have, have a property of, or the like; and the term “controller”means any device, system or part thereof that controls at least oneoperation, such a device may be implemented in hardware, firmware orsoftware, or some combination of at least two of the same. It should benoted that the functionality associated with any particular controllermay be centralized or distributed, whether locally or remotely.Definitions for certain words and phrases are provided throughout thispatent document, those of ordinary skill in the art should understandthat in many, if not most instances, such definitions apply to prior, aswell as future uses of such defined words and phrases.

BRIEF DESCRIPTION OF THE DRAWINGS

For a more complete understanding of the present disclosure and itsadvantages, reference is now made to the following description taken inconjunction with the accompanying drawings, in which like referencenumerals represent like parts:

FIG. 1 illustrates a block diagram of an electronic device in a networkaccording to various embodiments of the present disclosure;

FIG. 2 illustrates a block diagram of an electronic device according tovarious embodiments of the present disclosure;

FIG. 3 illustrates a block diagram of a program module according tovarious embodiments of the present disclosure;

FIG. 4 illustrates a block diagram of a communication system accordingto various embodiments of the present disclosure;

FIG. 5 illustrates a diagram of data transmission flows in acommunication system according to various embodiments of the presentdisclosure;

FIG. 6 illustrates another diagram of data transmission flows in acommunication system according to one embodiment of the presentdisclosure;

FIG. 7 illustrates yet another diagram of data transmission flows in acommunication system according to an embodiment of the presentdisclosure;

FIG. 8 illustrates yet another diagram of data transmission flows in acommunication system according to an embodiment of the presentdisclosure;

FIG. 9 illustrates yet another diagram of data transmission flows in acommunication system according to an embodiment of the presentdisclosure;

FIG. 10 illustrates a flowchart of data transmission in an electronicdevice according to various embodiments of the present disclosure;

FIG. 11 illustrates a flowchart of data transmission in a communicationsystem according to one embodiment of the present disclosure;

FIG. 12 illustrates a flowchart of data transmission in a source deviceaccording to one embodiment of the present disclosure;

FIG. 13 illustrates a flowchart of data reception in a sink deviceaccording to one embodiment of the present disclosure;

FIG. 14 illustrates a flowchart of data transmission in a communicationsystem according to another embodiment of the present disclosure;

FIGS. 15A and 15B illustrate flowcharts of data transmission in a sourcedevice according to another embodiment of the present disclosure;

FIG. 16 illustrates a flowchart of data reception in a sink deviceaccording to another embodiment of the present disclosure;

FIG. 17 illustrates a flowchart of data transmission in a communicationsystem according to yet another embodiment of the present disclosure;

FIG. 18 illustrates a flowchart of data transmission in a source deviceaccording to yet another embodiment of the present disclosure;

FIGS. 19A and 19B illustrate flowcharts of data reception in a sinkdevice according to yet another embodiment of the present disclosure;

FIG. 20 illustrates a flowchart of data transmission in a communicationsystem according to still another embodiment of the present disclosure;

FIG. 21 illustrates a flowchart of data transmission in a source deviceaccording to still another embodiment of the present disclosure;

FIG. 22 illustrates flowchart of data reception in a sink deviceaccording to still another embodiment of the present disclosure; and

FIG. 23 illustrates a diagram of screens which output a state of anelectronic device according to various embodiments of the presentdisclosure.

Throughout the drawings, like reference numerals will be understood torefer to like parts, components and structures.

DETAILED DESCRIPTION

FIGS. 1 through 23, discussed below, and the various embodiments used todescribe the principles of the present disclosure in this patentdocument are by way of illustration only and should not be construed inany way to limit the scope of the disclosure. Those skilled in the artwill understand that the principles of the present disclosure may beimplemented in any suitably arranged electronic device.

Hereinafter, various embodiments of the present disclosure will bedescribed with reference to the accompanying drawings. In the followingdescription, specific details such as detailed configuration andcomponents are merely provided to assist the overall understanding ofthese embodiments of the present disclosure. Therefore, it should beapparent to those skilled in the art that various changes andmodifications of the embodiments described herein can be made withoutdeparting from the scope and spirit of the present disclosure. Inaddition, descriptions of well-known functions and constructions areomitted for clarity and conciseness.

The present disclosure may have various embodiments, and modificationsand changes may be made therein. Therefore, the present disclosure willbe described in detail with reference to particular embodiments shown inthe accompanying drawings. However, it should be understood that thepresent disclosure is not limited to the particular embodiments, butincludes all modifications/changes, equivalents, and/or alternativesfalling within the spirit and the scope of the present disclosure. Indescribing the drawings, similar reference numerals may be used todesignate similar elements.

The terms “have,” “may have,” “include,” or “may include” used in thevarious embodiments of the present disclosure indicate the presence ofdisclosed corresponding functions, operations, elements, and the like,and do not limit additional one or more functions, operations, elements,and the like. In addition, it should be understood that the terms“include” or “have” used in the various embodiments of the presentdisclosure are to indicate the presence of features, numbers, steps,operations, elements, parts, or a combination thereof described in thespecifications, and do not preclude the presence or addition of one ormore other features, numbers, steps, operations, elements, parts, or acombination thereof.

The terms “A or B,” “at least one of A or/and B” or “one or more of Aor/and B” used in the various embodiments of the present disclosureinclude any and all combinations of words enumerated with it. Forexample, “A or B,” “at least one of A and B” or “at least one of A or B”means (1) including at least one A, (2) including at least one B, or (3)including both at least one A and at least one B.

Although the term such as “first” and “second” used in variousembodiments of the present disclosure may modify various elements ofvarious embodiments, these terms do not limit the correspondingelements. For example, these terms do not limit an order and/orimportance of the corresponding elements. These terms may be used forthe purpose of distinguishing one element from another element. Forexample, a first user device and a second user device all indicate userdevices and may indicate different user devices. For example, a firstelement may be named a second element without departing from the scopeof right of various embodiments of the present disclosure, andsimilarly, a second element may be named a first element.

It will be understood that when an element (e.g., first element) is“connected to” or “(operatively or communicatively) coupled with/to” toanother element (e.g., second element), the element may be directlyconnected or coupled to another element, and there may be an interveningelement (e.g., third element) between the element and another element.To the contrary, it will be understood that when an element (e.g., firstelement) is “directly connected” or “directly coupled” to anotherelement (e.g., second element), there is no intervening element (e.g.,third element) between the element and another element.

The expression “configured to (or set to)” used in various embodimentsof the present disclosure may be replaced with “suitable for,” “havingthe capacity to,” “designed to,” “adapted to,” “made to,” or “capableof” according to a situation. The term “configured to (set to)” does notnecessarily mean “specifically designed to” in a hardware level.Instead, the expression “apparatus configured to . . . ” may mean thatthe apparatus is “capable of . . . ” along with other devices or partsin a certain situation. For example, “a processor configured to (set to)perform A, B, and C” may be a dedicated processor, e.g., an embeddedprocessor, for performing a corresponding operation, or ageneric-purpose processor, e.g., a central processing unit (CPU) or anapplication processor (AP), capable of performing a correspondingoperation by executing one or more software programs stored in a memorydevice.

The terms as used herein are used merely to describe certain embodimentsand are not intended to limit the present disclosure. As used herein,singular forms may include plural forms as well unless the contextexplicitly indicates otherwise. Further, all the terms used herein,including technical and scientific terms, should be interpreted to havethe same meanings as commonly understood by those skilled in the art towhich the present disclosure pertains, and should not be interpreted tohave ideal or excessively formal meanings unless explicitly defined invarious embodiments of the present disclosure.

An electronic device according to various embodiments of the presentdisclosure may be a device. For example, the electronic device accordingto various embodiments of the present disclosure may include at leastone of: a smart phone; a tablet personal computer (PC); a mobile phone;a video phone; an e-book reader; a desktop PC; a laptop PC; a netbookcomputer; a workstation, a server, a personal digital assistant (PDA); aportable multimedia player (PMP); an MP3 player; a mobile medicaldevice; a camera; or a wearable device (e.g., a head-mount-device (HMD),an electronic glasses, an electronic clothing, an electronic bracelet,an electronic necklace, an electronic appcessory, an electronic tattoo,a smart mirror, or a smart watch).

In other embodiments, an electronic device may be a smart homeappliance. For example, of such appliances may include at least one of:a television (TV); a digital video disk (DVD) player; an audiocomponent; a refrigerator; an air conditioner; a vacuum cleaner; anoven; a microwave oven; a washing machine; an air cleaner; a set-topbox; a home automation control panel; a security control panel; a TV box(e.g., Samsung HomeSync®, Apple TV®, or Google TV®); a game console(e.g., Xbox®, PlayStation®); an electronic dictionary; an electronickey; a camcorder; or an electronic frame.

In other embodiments, an electronic device may include at least one of:a medical equipment (e.g., a mobile medical device (e.g., a bloodglucose monitoring device, a heart rate monitor, a blood pressuremonitoring device or a temperature meter), a magnetic resonanceangiography (MRA) machine, a magnetic resonance imaging (MRI) machine, acomputed tomography (CT) scanner, or an ultrasound machine); anavigation device; a global positioning system (GPS) receiver; an eventdata recorder (EDR); a flight data recorder (FDR); an in-vehicleinfotainment device; an electronic equipment for a ship (e.g., shipnavigation equipment and/or a gyrocompass); an avionics equipment; asecurity equipment; a head unit for vehicle; an industrial or homerobot; an automatic teller's machine (ATM) of a financial institution,point of sale (POS) device at a retail store, or an internet of thingsdevice (e.g., a lightbulb, various sensors, an electronic meter, a gasmeter, a sprinkler, a fire alarm, a thermostat, a streetlamp, a toaster,a sporting equipment, a hot-water tank, a heater, or a boiler and thelike)

In certain embodiments, an electronic device may include at least oneof: a piece of furniture or a building/structure; an electronic board;an electronic signature receiving device; a projector; and variousmeasuring instruments (e.g., a water meter, an electricity meter, a gasmeter, or a wave meter).

An electronic device according to various embodiments of the presentdisclosure may also include a combination of one or more of theabove-mentioned devices. Further, it will be apparent to those skilledin the art that an electronic device according to various embodiments ofthe present disclosure is not limited to the above-mentioned devices.

FIG. 1 illustrates a view illustrating a network environment 100including an electronic device 101 according to various embodiments.Referring to FIG. 1, the electronic device 101 may include a bus 110, aprocessor 120, a memory 130, an input/output (I/O) interface 150, adisplay 160, and a communication interface 170.

The bus 110 may be a circuit for connecting the above-described elements(e.g., the processor 120, the memory 130, the I/O interface 150, thedisplay 160 or the communication interface 170, etc.) with each other,and transferring communication (e.g., a control message) between theabove-described elements.

The processor 120 may include a central processing unit (CPU), acommunication processor (CP), a graphic processing unit (GPU).

The processor 120 may receive, for example, an instruction from theabove-described other elements (e.g., the memory 130, the I/O interface150, the display 160, or the communication interface 170, etc.) via thebus 110, decipher the received instruction, and execute an operation ora data process corresponding to the deciphered instruction.

The memory 130 may include any suitable type of volatile or non-volatilememory. The memory 130 may store an instruction or data received fromthe processor 120 or other elements (e.g., the I/O interface 150, thedisplay 160, or the communication interface 170, etc.), or generated bythe processor 120 or other elements. The memory 130 may include, forexample, programming modules 140 (e.g., program) such as a kernel 141, amiddleware 143, an application programming interface (API) 145, or anapplication 147. The each of the programming modules may be configuredusing a software, a firmware, a hardware, or a combination of two ormore of these.

The kernel 141 may control or manage system resources (e.g., the bus110, the processor 120, or the memory 130, etc.) used for executing anoperation or a function implemented in the rest of the programmingmodules, for example, the middleware 143, the API 145, or theapplication 147. Also, the kernel 141 may provide an interface forallowing the middleware 143, the API 145, or the application 147 toaccess an individual element of the electronic device 101 and control ormanage the same.

The middleware 143 may perform a mediation role so that the API 145 orthe application 147 may communicate with the kernel 141 to give and takedata. Also, in connection with task requests received from theapplications 147, the middleware 143 may perform a control (e.g.,scheduling or load balancing) for a task request using, for example, amethod of assigning priority that may use a system resource (e.g., thebus 110, the processor 120, or the memory 130, etc.) of the electronicdevice 101 to at least one application 134.

The API 145 is an interface for allowing the application 147 to controla function provided by the kernel 141 or the middleware 143, and mayinclude at least one interface or function (e.g., an instruction) forfile control, window control, image processing, or character control,etc.

The I/O interface 150 may transfer an instruction or data input from auser via an I/O unit (e.g., a sensor, a keyboard, or a touchscreen) tothe processor 120, the memory 130, or the communication interface 170via the bus 110, for example. For example, the I/O interface 150 mayprovide data regarding a user's touch input via the touchscreen to theprocessor 120. Also, the I/O interface 150 may, for example, output aninstruction or data received via the bus 110 from the processor 120, thememory 130, or the communication interface 170 via the I/O unit (e.g., aspeaker or a display). For example, the I/O interface 150 may outputvoice data processed by the processor 120 to a user via a speaker.

The display 160 may include, for example, a liquid crystal display(LCD), a light emitting diode (LED) display, an organic light emittingdiode (OLED) display, a micro electro mechanical system (MEMS) display,or an electronic paper display. The display 160 may display varioustypes of contents (for example, text, images, videos, icons, or symbols)for users. The display 160 may include a touch screen, and may receive,for example, a touch, gesture, proximity, or hovering input by using anelectronic pen or a part of the user's body.

The communication interface 170 may connect communication between theelectronic device 101 and an external device (for example, theelectronic device 104 or the server 106). For example, the communicationinterface 170 may be connected to a network 162 through wirelesscommunication or wired communication and may communicate with anexternal device.

The wireless communication may use at least one of, for example, longterm evolution (LTE), LTE-Advance (LTE-A), code division multiple access(CDMA), wideband CDMA (WCDMA), universal mobile telecommunicationssystem (UMTS), WiBro (wireless broadband), and global system for mobilecommunications (GSM) as a cellular communication protocol.

The wired communication may include, for example, at least one ofuniversal serial bus (USB), high definition multimedia interface (HDMI),recommended standard 232 RS-232), and plain old telephone service(POTS).

The network 162 may include at least one of communication networks suchas a computer network (for example, a LAN or a WAN), the Internet, and atelephone network.

The electronic devices 102 and 104 may be devices of the same type asthat the electronic device 101 or devices of different types from thatof the electronic device 101. According to an embodiment, the server 106may include a group of one or more servers. According to variousembodiments, all or some of the operations executed in the electronicdevice 101 may be carried out in another electronic device or aplurality of electronic devices (for example, the electronic device 102or 104 and the server 106). According to an embodiment, when theelectronic device 101 may perform some functions or servicesautomatically or by a request, the electronic device 101 may make arequest for performing at least some functions related to the functionsor services to another device (for example, the electronic device 102 or104, or the server 106) instead of performing the functions or servicesby itself or additionally. The electronic device (for example, theelectronic device 102 or 104, or the server 106) may carry out thefunctions requested by the electronic device 101 or additional functionsand provide results thereof to the electronic device 101. The electronicdevice 101 may provide the requested functions or services to anotherelectronic device based on the received results or after additionallyprocessing the received results. To this end, for example, cloudcomputing, distributed computing, or client-server computing technologymay be used.

FIG. 2 illustrates a block diagram 200 illustrating an electronic device201 according to various embodiments of the present disclosure. Theelectronic device 201 may configure, for example, all or a portion ofthe electronic device 21 illustrated in FIG. 1. Referring to FIG. 2, theelectronic device 201 may include one or more application processors(AP) 210, a communication interface 220, a subscriber identificationmodule (SIM) card 224, a memory 230, a sensor 240, an input unit 250, adisplay 260, an interface 270, an audio 280, a camera 291, a powermanagement 295, a battery 296, an indicator 297, or a motor 298.

The AP 210 may drive an OS or an application to control a plurality ofhardware or software elements connected to the AP 210, and performvarious data processes including multimedia data and operations. The AP210 may be implemented, for example, as a system on chip (SoC).According to an embodiment, the AP 210 may further include at least oneof a graphic processing unit (GPU) or image signal processor. Accordingto an embodiment, the AP 210 may be implemented to include at least aportion (e.g., the cellular interface 221) of the above-describedelements. Also, the AP 210 may store data received from at least one ofother elements or generated by at least one of other elements in anon-volatile memory.

The communication interface 220 (e.g., the communication interface 170)may perform data transmission/reception in communication between theelectronic device 201 (e.g., the electronic device 21) and otherelectronic devices (e.g., the electronic device 24 or the server 26)connected via a network. According to an embodiment, the communicationinterface 220 may include a cellular interface 221, a Wi-Fi interface223, a BT interface 225, a GPS interface 227 (e.g., GNSS interface), anNFC interface 228, and a radio frequency (RF) interface 229.

The cellular interface 221 may provide voice communication, imagecommunication, a short message service, or an Internet service, etc. viaa communication network (e.g., LTE, LTE-A, CDMA, WCDMA, UMTS, WiBro, orGSM, etc.). Also, the cellular interface 221 may perform discriminationand authentication of an electronic device within a communicationnetwork using, for example, a subscriber identify module (e.g., a SIMcard 224). According to an embodiment, the cellular interface 221 mayperform at least a portion of functions that may be provided by the AP210. According to an embodiment, the cellular interface 221 may includea communication processor (CP). Also, the cellular interface 221 may be,for example, implemented as a SoC. Though elements such as the cellularinterface 221 (e.g., a communication processor), the memory 230, or thepower management 295, etc. are illustrated as elements separated fromthe AP 210 in FIG. 2, according to an embodiment, the AP 210 may beimplemented to include at least a portion (e.g., the cellular interface221) of the above-described elements.

Each of the Wi-Fi interface 223, the BT interface 225, the GPS module227, or the NFC interface 228 may include, for example, a processor forprocessing data transmitted/received via a relevant module. Though thecellular interface 221, the Wi-Fi interface 223, the BT interface 225,the GPS interface 227, or the NFC interface 228 are illustrated asseparate blocks in FIG. 2, according to an embodiment, at least aportion (e.g., two or more elements) of the cellular interface 221, theWi-Fi interface 223, the BT interface 225, the GPS module 227, or theNFC interface 228 may be included in one integrated circuit (IC) or anIC package. For example, at least a portion (e.g., a communicationprocessor corresponding to the cellular interface 221 and a Wi-Fiprocessor corresponding to the Wi-Fi interface 223) of processorscorresponding to each of the cellular interface 221, the Wi-Fi interface223, the BT interface 225, the GPS interface 227, or the NFC interface228 may be implemented as one SoC.

The RF interface 229 may perform transmission/reception of data, forexample, transmission/reception of an RF signal. The RF interface 229may include, for example, a transceiver, a power amp module (PAM), afrequency filter, or a low noise amplifier (LNA), etc., though notshown. Also, the RF interface 229 may further include a part fortransmitting/receiving an electromagnetic wave on a free space inwireless communication, for example, a conductor or a conducting line,etc. Though FIG. 2 illustrates the cellular interface 221, the Wi-Fiinterface 223, the BT interface 225, the GPS interface 227, and the NFCinterface 228 share one RF interface 229, according to an embodiment, atleast one of the cellular interface 221, the Wi-Fi interface 223, the BTinterface 225, the GPS interface 227, or the NFC interface 228 mayperform transmission/reception of an RF signal via a separate RFinterface.

The SIM card 224 may be a card including a subscriber identify moduleand may be inserted into a slot formed in a specific position of theelectronic device. The SIM card 224 may include unique identifyinformation (e.g., integrated circuit card identifier (ICCID)) orsubscriber information (e.g., international mobile subscriber identity(IMSI)).

The memory 230 (e.g., the memory 20) may include a built-in memory 232or an external memory 234. The built-in memory 232 may include, forexample, at least one of a volatile memory (e.g., dynamic RAM (DRAM),static RAM (SRAM), synchronous dynamic RAM (SDRAM)) and a non-volatilememory (e.g., one time programmable ROM (OTPROM), programmable ROM(PROM), erasable and programmable ROM (EPROM), electrically erasable andprogrammable ROM (EEPROM), mask ROM, flash ROM, NAND flash memory, NORflash memory, etc.).

According to an embodiment, the built-in memory 232 may be a solid statedrive (SSD). The external memory 234 may further include a flash drive,for example, compact flash (CF), secure digital (SD), micro securedigital (micro-SD), mini secure digital (mini-SD), extreme digital (xD),or a memory stick. The external memory 234 may be functionally connectedwith the electronic device 201 via various interfaces. According to anembodiment, the electronic device 201 may further include a storagedevice (or a storage medium) such as a hard drive.

The sensor 240 may measure a physical quantity or detect an operationstate of the electronic device 201 and convert the measured or detectedinformation to an electric signal. The sensor 240 may include, forexample, at least one of a gesture sensor 240A, a gyro sensor 240B, anatmospheric pressure sensor 240C, a magnetic sensor 240D, anacceleration sensor 240E, a grip sensor 240F, a proximity sensor 240G, acolor sensor 240H (e.g., red, green, blue (RGB) sensor), a living bodysensor 240I, a temperature/humidity sensor 240J, an illuminance sensor240K, or an ultra violet (UV) sensor 240M. Additionally oralternatively, the sensor 240 may include, for example, an E-nose sensor(not shown), an electromyography (EMG) sensor (not shown), anelectroencephalogram (EEG) sensor (not shown), an electrocardiogram(ECG) sensor (not shown), an infrared (IR) sensor (not shown), an irissensor (not shown), or a fingerprint sensor (not shown), etc. The sensor240 may further include a control circuit for controlling at least onesensor belonging thereto.

The input unit 250 may include a touch panel 252, a (digital) pen sensor254, a key 256, or an ultrasonic input unit 258. The touch panel 252 mayrecognize a touch input using at least one of capacitive, resistive,infrared, or ultrasonic methods. Also, the touch panel 252 may furtherinclude a control circuit. A capacitive touch panel may performdetection by a physical contact or proximity recognition. The touchpanel 252 may further include a tactile layer. In this case, the touchpanel 252 may provide a tactile reaction to a user.

The (digital) pen sensor 254 may be implemented using, for example, amethod which is the same as or similar to receiving a user's touch inputor using a separate sheet for detection. The key 256 may include, forexample, a physical button, an optical key or keypad. The ultrasonicinput unit 258 is a unit for recognizing data by detecting a sound waveusing a microphone (e.g., a microphone 288) in the electronic device 201via an input tool generating an ultrasonic signal and enables wirelessrecognition. According to an embodiment, the electronic device 201 mayreceive a user input from an external device (e.g., a computer or aserver) connected to the communication interface 220 using thecommunication interface 220.

The display 260 (e.g., the display 160) may include a panel 262, ahologram device 264, or a projector 266. The panel 262 may be, forexample, a liquid crystal display (LCD), or an active-matrix organiclight-emitting diode (AM-OLED), etc. The panel 262 may be implemented,for example, such that it is flexible, transparent, or wearable. Thepanel 262 may be configured as one module together with the touch panel252. The hologram device 264 may show a three-dimensional image in theair using interferences of light. The projector 266 may project lightonto a screen to display an image. The screen may be positioned, forexample, inside or outside the electronic device 201. According to anembodiment, the display 260 may further include a control circuit forcontrolling the panel 262, the hologram device 264, or the projector266.

The interface 270 may include, for example, a high-definition multimediainterface (HDMI) 272, a universal serial bus (USB) 274, an opticalinterface 276, or a D-subminiature (D-sub) 278. The interface 270 may beincluded, for example, in the communication interface 170 illustrated inFIG. 1. Additionally or alternatively, the interface 270 may include,for example, a mobile high-definition link (MHL) interface, a securedigital (SD) card/multi-media card (MMC) interface, or an infrared dataassociation (IrDA) standard interface.

The audio 280 may convert a sound and an electric signal in dualdirections. At least a partial element of the audio 280 may be included,for example, in the I/O interface 150 illustrated in FIG. 1. The audio280 may process sound information input or output via, for example, aspeaker 282, a receiver 284, an earphone 286, or a microphone 288, etc.

The camera 291 is a device that may shoot a still image and a movingpicture. According to an embodiment, the camera 291 may include one ormore image sensors (e.g., a front sensor or a rear sensor), a lens (notshown), an image signal processor (ISP) (not shown), or a flash (notshown) (e.g., an LED or xenon lamp).

The power management 295 may manage power of the electronic device 201.Though not shown, the power management 295 may include, for example, apower management integrated circuit (PMIC), a charger integrated circuit(IC), or a battery or a battery or fuel gauge.

The PMIC may be mounted, for example, inside an integrated circuit or aSoC semiconductor. A charging method may be classified into a wiredcharging method and a wireless charging method. The charging IC maycharge a battery and reduce an amount of or prevent introduction of anovervoltage or an overcurrent from a charger. According to anembodiment, the charging IC may include a charging IC for at least oneof the wired charging method and the wireless charging method. Thewireless charging method may be, for example, a magnetic resonancemethod, a magnetic induction method, or an electromagnetic wave method,etc., and may additionally include an additional circuit for wirelesscharging, for example, a circuit such as a coil loop, a resonancecircuit, or a rectifier, etc.

The battery gauge may measure, for example, a remnant of the battery296, a voltage, a current, or a temperature while charging. The battery296 may store or generate electricity and supply power to the electronicdevice 201 using the stored or generated electricity. The battery 296may include, for example, a rechargeable battery or a solar battery.

The indicator 297 may display a specific state of the electronic device201 or a portion thereof (e.g., the AP 210), for example, a bootingstate, a message state, or a charging state, etc. The motor 298 mayconvert an electric signal to mechanical vibration. Though not shown,the electronic device 201 may include a processor (e.g., a GPU) forsupporting a mobile TV. The processor for supporting the mobile TV mayprocess media data corresponding to standards, for example, such asdigital multimedia broadcasting (DMB), digital video broadcasting (DVB),or a media flow, etc.

The aforementioned elements of the electronic device according tovarious embodiments of the present disclosure may be constituted by oneor more components, and the name of the corresponding element may varywith a type of electronic device. The electronic device according tovarious embodiments of the present disclosure may include at least oneof the aforementioned elements. Some elements may be omitted or otheradditional elements may be further included in the electronic device.Further, some of the components of the electronic device according tothe various embodiments of the present disclosure may be combined toform a single entity, and thus, may equivalently execute functions ofthe corresponding elements prior to the combination.

According to an embodiment, the processor 210 can output and transmitcontent to the external electronic device (e.g., the external electronicdevice 102). For example, the processor 210 can provide a screenmirroring service to the external electronic device 102 using WiFiDirect communication.

According to an embodiment, the processor 210 can transmit contentaccording to a schedule corresponding to the content. For example, theschedule (or schedule information) can be time information indicating anactive interval and a sleep interval of a communication interface (e.g.,the communication interface 220 or the WIFI interface 223 of thecommunication interface 220) based on a preset period. For example, theschedule can be a proportion of the active interval and the sleepinterval in a period. For example, the active interval can deliver data(e.g., content) by activating the communication interface 220. Forexample, the sleep interval may not deliver data by deactivating thecommunication interface 220 so as to minimize current consumption of thecommunication interface 220.

According to an embodiment, the schedule corresponding to the contentcan include the proportion 1:0 of the active interval and the sleepinterval of the period. For example, the schedule corresponding to thecontent can include only the active interval.

According to an embodiment, the processor 210 can detect a state of theelectronic device 101 relating to the content output. For example, thestate of the electronic device 101 can include an active state, aninactive state, a low-power state, or a power-on state or a power-offstate of the display 260. For example, the state of the electronicdevice 101 can include a function state of the display 260, a contentchange, and a change of an application or a function (e.g., camera orcall) which reproduces the content.

According to an embodiment, the processor 210 can select substitutecontent for the content based on the detected state of the electronicdevice 101. For example, the substitute content can be smaller than thecontent in size. For example, the substitute content can include animage, an audio, a video, or a combination of them.

According to an embodiment, when the display 260 is turned off, theprocessor 210 can select the substitute content for the content. Forexample, the substitute content can be preset or pre-selected. Forexample, the substitute content can be selected by a user from at leastone content stored in the memory 230.

The electronic device 101 can determine the schedule corresponding tothe selected substitute content. For example, the schedule correspondingto the selected substitute content can be designated or determined basedon a property of the substitute content. For example, the property ofthe content can include at least one of a content type (e.g., image,video, audio, or multimedia), a playback rate (e.g., a bit rate of videoor a bit rate of audio), and a size. For example, the schedule can bedetermined such that a service quality regarding the substitute contentsatisfies a preset level.

According to an embodiment, the electronic device 101 can determine apreset schedule corresponding to the selected substitute content. Forexample, the electronic device 101 can detect the preset schedulecorresponding to the selected substitute content and determine thedetected schedule as the schedule corresponding to the selectedsubstitute content.

According to an embodiment, the electronic device 101 can determine theschedule corresponding to the selected substitute based on the propertyof the selected substitute content. For example, the electronic device101 can check the property of the selected substitute content, detectthe schedule from a plurality of schedules based on the property, anddetermine the detected schedule as the schedule corresponding to theselected substitute content.

For example, the processor 210 can check the type of the selectedsubstitute content, and detect the schedule corresponding to the checkedtype from the plurality of the schedules. For example, the processor 210can check the playback rate of the selected substitute content anddetect the schedule corresponding to the checked substitute content fromthe plurality of the schedules. For example, the processor 210 can checkthe size of the selected substitute content and detect the schedulecorresponding to the checked size from the plurality of the schedules.

According to an embodiment, the schedule corresponding to the substitutecontent can include the proportion of the active interval and the sleepinterval per period, which is any one of 8:2, 7:3, 6:4, 5:5, 4:6, 3:7,and 2:8. For example, the active interval can be the activated intervaland the sleep interval can be the inactive interval. For example, theschedule can include the active interval and the inactive interval.

According to an embodiment, the processor 210 can transmit the selectedsubstitute content based on the determined schedule, to the externalelectronic device 102. For example, when the proportion of the activeinterval and the sleep interval of the determined schedule is 3:7, theprocessor 210 can transmit the selected substitute content for 3/10hours of one period and stop the selected substitute contenttransmission for 7/10 hours of one period.

For example, when the proportion of the active interval and the sleepinterval of the determined schedule is 2:8, the processor 210 cantransmit the selected substitute content for 2/10 hours of one periodand stop the selected substitute content transmission for 8/10 hours ofone period.

According to an embodiment, the processor 210 can detect other state ofthe electronic device after the substitute content transmission. Whenthe other state satisfies a preset condition, the processor 210 cantransmit the content to the external electronic device. For example, thepreset condition can include returning to the state before thesubstitute content transmission. For example, the preset condition caninclude turning on the display 260.

According to an embodiment, when the other state satisfies the presetcondition, the processor 210 can transmit information for releasing theschedule corresponding to the substitute content, to the externalelectronic device 102. For example, the schedule release information canrequest the schedule release.

The aforementioned components of the electronic device in the presentdisclosure each can include one or more components, and the name of thecorresponding component can differ according to a type of the electronicdevice. The electronic device (e.g., the electronic device 201)according to various embodiments of the present disclosure can includeomit some components, further include other components, or unit some ofthe components into a single entity, to thus carry out the samefunctions of the corresponding components.

FIG. 3 illustrates a block diagram of a program module 310 according tovarious embodiments of the present disclosure.

According to an embodiment, the program module 310 (for example, theprograms 140) may include an operating system (OS) for controllingresources related to the electronic device (for example, the electronicdevice 101) and/or various applications (for example, the applicationprograms 147) executed in the operating system. The operating system maybe, for example, Android®, iOS®, Windows®, Symbian®, Tizen®, Bada®, orthe like.

The programming module 310 may include a kernel 320, middleware 330, anAPI 360, and/or applications 370. At least some of the program module310 may be preloaded in the electronic device or downloaded from theserver.

The kernel 320 (for example, the kernel 141 of FIG. 1) may include, forexample, a system resource manager 331 or a device driver 333. Thesystem resource manager 331 may control, allocate, or collect the systemresources. According to an embodiment, the system resource manager 331may include a process management unit, a memory management unit, or afile system management unit. The device driver 333 may include, forexample, a display driver, a camera driver, a Bluetooth driver, ashared-memory driver, a USB driver, a keypad driver, a WiFi driver, anaudio driver, or an inter-process communication (IPC) driver.

The middleware 330 may provide a function required by the applications370 in common or provide various functions to the applications 370through the API 360 so that the applications 370 can efficiently uselimited system resources within the electronic device. According to anembodiment, the middleware 330 (for example, the middleware 143) mayinclude, for example, at least one of a runtime library 335, anapplication manager 341, a window manager 342, a multimedia manager 343,a resource manager 344, a power manager 345, a database manager 346, apackage manager 347, a connectivity manager 348, a notification manager349, a location manager 350, a graphic manager 351, and a securitymanager 352.

The runtime library 335 may include, for example, a library module thata compiler uses to add new functions through a programming languagewhile the application 370 is executed. The runtime library 335 mayperform input/output management, memory management, or a function for anarithmetic function.

The application manager 341 may manage, for example, a life cycle of atleast one of the applications 370. The window manager 342 may managegraphical user interface (GUI) resources used by a screen. Themultimedia manager 343 may grasp formats required for the reproductionof various media files and may perform an encoding or decoding of themedia file by using a codec suitable for the corresponding format. Theresource manager 344 may manage resources such as a source code, amemory, and a storage space of at least one of the applications 370.

The power manager 345 may operate together with a basic input/outputSystem (BIOS) to manage a battery or power and may provide powerinformation required for the operation of the electronic device. Thedatabase manager 346 may generate, search for, or change a database tobe used by at least one of the applications 370. The package manager 347may manage the installation or the updating of applications distributedin the form of package file.

The connectivity manager 348 may manage wireless connection of, forexample, Wi-Fi or Bluetooth. The notification manager 349 can display ornotify of an event such as an arrival message, promise, proximitynotification, and the like in such a way that does not disturb a user.The location manager 350 may manage location information of theelectronic device. The graphic manager 351 may manage graphic effects tobe provided to a user and user interfaces related to the graphiceffects. The security manager 352 may provide all security functionsrequired for system security or user authentication. According to anembodiment, when the electronic device (for example, electronic device101) has a call function, the middleware 330 may further include atelephony manager for managing a voice call function or a video callfunction of the electronic device.

The middleware 330 may include a middleware module for forming acombination of various functions of the aforementioned components. Themiddleware 330 may provide modules specialized according to types ofoperating systems in order to provide differentiated functions. Further,the middleware 330 may dynamically remove some of the existingcomponents or add new components.

The API 360 (for example, the API 145) is, for example, a set of APIprogramming functions, and a different configuration thereof may beprovided according to an operating system. For example, Android or iOSmay provide one API set per platform, and Tizen may provide two or moreAPI sets per platform.

The applications 370 (for example, the application programs 147) mayinclude, for example, one or more applications which can providefunctions such as home 371, dialer 372, SMS/MMS 373, instant message(IM) 374, browser 375, camera 376, alarm 377, contacts 378, voice dialer379, email 380, calendar 381, media player 382, album 383, clock 384,health care (for example, measure exercise quantity or blood sugar), orenvironment information (for example, atmospheric pressure, humidity, ortemperature information).

According to an embodiment, the applications 370 may include anapplication (hereinafter, referred to as an “information exchangeapplication” for convenience of the description) supporting informationexchange between the electronic device (for example, the electronicdevice 101) and an external electronic device. The information exchangeapplication may include, for example, a notification relay applicationfor transferring predetermined information to an external electronicdevice or a device management application for managing an externalelectronic device.

For example, the notification relay application may include a functionof transferring, to the external electronic device, notificationinformation generated from other applications of the electronic device101 (for example, an SMS/MMS application, an e-mail application, ahealth management application, or an environmental informationapplication). Further, the notification relay application may receivenotification information from, for example, a control device and providethe received notification information to the user. The device managementapplication may manage (for example, install, delete, or update), forexample, a function for at least a part of the external electronicdevice communicating with the electronic device (for example, turningon/off the external electronic device itself (or some elements thereof)or adjusting brightness (or resolution) of a display), applicationsexecuted in the external electronic device, or services provided fromthe external electronic device (for example, a telephone call service ora message service).

According to an embodiment, the applications 370 may include anapplication (for example, health management application) designatedaccording to attributes of the external electronic device (for example,attributes of the electronic device such as the type of electronicdevice which corresponds to a mobile medical device). According to anembodiment, the applications 370 may include an application receivedfrom the external electronic devices (for example, the server or theelectronic device). According to an embodiment, the applications 370 mayinclude a preloaded application or a third party application which canbe downloaded from the server. The names of the components of theprogram module 310 according to the embodiment illustrated in FIG. 3 mayvary according to the type of operating system.

According to various embodiments, at least some of the programmingmodule 310 may be implemented by software, firmware, hardware, or acombination of two or more thereof. At least some of the programmingmodule 310 may be implemented (for example, executed) by, for example,the processor (for example, the application program). At least some ofthe programming module 310 may include, for example, a module, program,routine, sets of instructions, or process for performing one or morefunctions.

The term “module” as used herein may, for example, mean a unit includingone of hardware, software, and firmware or a combination of two or moreof them. The “module” may be interchangeably used with, for example, theterm “unit,” “logic,” “logical block,” “component,” or “circuit.” The“module” may be a minimum unit of an integrated component element or apart thereof. The “module” may be a minimum unit for performing one ormore functions or a part thereof. The “module” may be mechanically orelectronically implemented. For example, the “module” according to thepresent disclosure may include at least one of an application-specificintegrated circuit (ASIC) chip, a field-programmable gate arrays (FPGA),and a programmable-logic device for performing operations which has beenknown or are to be developed hereinafter.

According to various embodiments, at least some of the devices (forexample, modules or functions thereof) or the method (for example,operations) according to the present disclosure may be implemented by acommand stored in a computer-readable storage medium in a programmingmodule form. The instruction, when executed by a processor (e.g., theprocessor 120), may cause the one or more processors to execute thefunction corresponding to the instruction. The computer-readable storagemedium may be, for example, the memory 130.

The computer readable recoding medium may include a hard disk, a floppydisk, magnetic media (e.g., a magnetic tape), optical media (e.g., acompact disc read only memory (CD-ROM) and a digital versatile disc(DVD)), magneto-optical media (e.g., a floptical disk), a hardwaredevice (e.g., a read only memory (ROM), a random access memory (RAM), aflash memory), and the like. In addition, the program instructions mayinclude high class language codes, which can be executed in a computerby using an interpreter, as well as machine codes made by a compiler.The aforementioned hardware device may be configured to operate as oneor more software modules in order to perform the operation of thepresent disclosure, and vice versa.

The programming module according to the present disclosure may includeone or more of the aforementioned components or may further includeother additional components, or some of the aforementioned componentsmay be omitted. Operations executed by a module, a programming module,or other component elements according to various embodiments of thepresent disclosure may be executed sequentially, in parallel,repeatedly, or in a heuristic manner. Further, some operations may beexecuted according to another order or may be omitted, or otheroperations may be added.

Various embodiments disclosed herein are provided merely to easilydescribe technical details of the present disclosure and to help theunderstanding of the present disclosure and are not intended to limitthe scope of the present disclosure. Accordingly, the scope of thepresent disclosure should be construed as including all modifications orvarious other embodiments based on the technical idea of the presentdisclosure.

FIG. 4 illustrates a block diagram of a communication system accordingto various embodiments of the present disclosure. For example, thecommunication system can include a first electronic device 401, a secondelectronic device 403, and a third electronic device 405. For example,the first, second, and third electronic devices 401, 403, and 405 caninclude some or all of the components of the electronic device 101 ofFIG. 1.

Referring to FIG. 4, the first electronic device 401 can connect to thesecond electronic device 403 using short-range communication. Forexample, the first electronic device 401 can connect to a plurality ofelectronic devices (e.g., the second electronic device 403 and the thirdelectronic device 405) using the short-range communication. For example,the short-range communication can include WiFi, BLE, Bluetooth, NFC, andso forth.

According to an embodiment, the first electronic device 401 can connectto the second electronic device 403 using the WiFi direct communication(or WiFi Peer-to-Peer (P2P)). For example, the WiFi Direct communicationis based on WiFi and can enable devices (e.g., the first electronicdevice 401 and the second electronic device 403) to directly connectwith each other without infrastructure equipment such as an access point(AP) or a router. For example, the WiFi direct can be deployed invarious devices including a smart phone, a TV, a notebook, a printer,and a camera, and use contents and services through direct communicationbetween devices.

According to an embodiment, when the electronic devices are connectedusing the WiFi direct, a group (e.g., a P2P group) including theelectronic devices can be formed. For example, when the electronicdevices are connected one to one, one electronic device (e.g., theelectronic device 401) can serve as a group owner, and the otherelectronic device (e.g., the electronic device 403) can serve as a groupclient. For example, the group owner can act as an AP in a WLAN network.For example, the group client can act as a station in the WLAN network.

According to an embodiment, one of the electronic devices in the groupcan be determined as the group owner using a group owner negotiationprotocol during the WiFi direction connection. For example, the groupcan be formed with 1:1 and 1:N connections using the WiFi Direct. Thenumber of group clients served by the group owner can be determinedaccording to a capability of the group owner.

According to an embodiment, when a plurality of electronic devices(e.g., the first and second electronic devices 401 and 403) forms a P2Pgroup and the first electronic device 401 serves as the group owner, thesecond electronic device 403 can become the group client. When aplurality of electronic devices (e.g., the first, second, and thirdelectronic devices 401, 403, and 405) forms a P2P group and the firstelectronic device 401 serves as the group owner, the other electronicdevices (e.g., the second and the third electronic devices 403 and 405)can become the group clients.

FIG. 5 illustrates data transmission flows in a communication systemaccording to various embodiments. For example, a first electronic devicecan be the electronic device 101 of FIG. 1 or the first electronicdevice 401 of FIG. 4. For example, a second electronic device can be theelectronic device 102 of FIG. 1 or the second electronic device 403 ofFIG. 4.

According to an embodiment, the first electronic device 401 can connectwith the second electronic device 403 using the WiFi directcommunication. For example, the first electronic device 401 and thesecond electronic device 403 can provide a screen mirroring serviceusing the WiFi direct communication. For example, the screen mirroringservice can display data (e.g., mirroring data or streaming data) whichis displayed on a screen (e.g., a display) of one of the electronicdevices of the P2P group, on a display of the other electronic device atthe same time or identically.

According to an embodiment, among the electronic devices of the P2Pgroup, the electronic device which provides the mirroring data can bereferred to as a source device, and the electronic device which receivesand outputs the mirroring data can be referred to as a sink device. Forexample, the mirroring data can include a video payload and an audiopayload. Electronic devices can transmit/receive control signals forcontrolling the screen mirroring service.

According to an embodiment, when the first electronic device 401transmits mirroring data, the first electronic device 401 can become thesource device and the second electronic device 403 can become the sinkdevice. When the second electronic device 403 transmits mirroring data,the second electronic device 403 can become the source device and thefirst electronic device 401 can become the sink device.

According to an embodiment, the first electronic device 401 can serve asthe group owner and the source device. In this case, the secondelectronic device 403 can serve as the group client and the sink device.The first electronic device 401 can serve as the group owner and thesink device. In this case, the second electronic device 403 can serve asthe group client and the source device. The first electronic device 401can serve as the group client and the source device. In this case, thesecond electronic device 403 can serve as the group owner and the sinkdevice. The first electronic device 401 can serve as the group clientand the sink device. In this case, the second electronic device 403 canserve as the group owner and the source device.

FIG. 6 illustrates data transmission flows in a communication systemaccording to one embodiment. For example, the communication system caninclude a source device 601 and a sink device 603. For example, thesource device 601 can be the electronic device 101 of FIG. 1 or thefirst electronic device 401 of FIG. 4. For example, the source device601 can be a group owner. For example, the sink device 603 can be theexternal electronic device 102 of FIG. 1 or the second electronic device403 of FIG. 4. For example, the sink device 603 can be a group client.

For example, the source device 601 can be an electronic device includinga display (e.g., the display 260) and a battery (e.g., the battery 296).For example, the source device 601 can be a smartphone.

Referring to FIG. 6, the source device 601 can transmit mirroring data605 to the sink device 603. According to an embodiment, the sink device603 can receive and output the mirroring data. For example, themirroring data can indicate data which is output from the source device601. For example, the mirroring data can include video data, audio data,or multimedia data (e.g., a combination of video data and audio data).

According to an embodiment, the source device 601 can transmit mirroringdata according to schedule information corresponding to the mirroringdata. For example, the schedule information corresponding to themirroring data can set the proportion of the active interval and thesleep interval per period to 1:0. For example, one period 613 caninclude the active interval and may not include the sleep interval.

According to an embodiment, when the display 260 of the source device601 is turned off, the source device 601 can set periodic sleep scheduleinformation based on substitute data. For example, the periodic sleepschedule information can include information about the sleep intervaland the active interval to periodically deactivate or activate acommunication interface (e.g., the communication interface 220). Forexample, the periodic sleep schedule information can include theproportion of the active interval and the sleep interval of the period.

According to an embodiment, the source device 601 can select substitutedata for the mirroring data. For example, the substitute data can bepreset. For example, the substitute data can be selected by the userfrom at least one data stored in a memory (e.g., the memory 230).

According to an embodiment, the source device 601 can determine theperiodic sleep schedule information corresponding to the selectedsubstitute data. For example, the periodic sleep schedule informationcan be set to satisfy quality of service (QoS) of the substitute data.

According to an embodiment, the source device 601 can determine theperiodic sleep schedule information corresponding to the selectedsubstitute data. For example, the source device 601 can detect presetperiodic sleep schedule information corresponding to the selectedsubstitute data from the memory 230 and determine the detected periodicsleep schedule information as the periodic sleep schedule informationcorresponding to the selected substitute data.

According to an embodiment, the source device 601 can set the periodicsleep schedule information corresponding to the selected substitute databased on the property of the selected substitute data. For example, thesource device 501 can check the property of the selected substitutedata, detect the periodic sleep schedule information from multipleperiodic sleep schedule information stored in the memory 230 based onthe property, and determine the detected periodic sleep scheduleinformation as the periodic sleep schedule information corresponding tothe selected substitute data. For example, the property can include thetype, the playback rate, and the size of the substitute data.

For example, the source device 601 can check the type of the selectedsubstitute data and detect the periodic sleep schedule informationcorresponding to the type from the multiple periodic sleep scheduleinformation. For example, the source device 601 can check the playbackrate of the selected substitute data and detect the periodic sleepschedule information corresponding to the playback rate from themultiple periodic sleep schedule information. For example, the sourcedevice 601 can check the size of the selected substitute data and detectthe periodic sleep schedule information corresponding to the size fromthe multiple periodic sleep schedule information.

According to an embodiment, the source device 601 can send a message 607including the periodic sleep schedule information to the sink device603. For example, the message can include a beacon message, a proberesponse message, or a P2P action frame.

According to an embodiment, the sink device 603 can synchronize with thesource device 601 according to the periodic sleep schedule information.The sink device 603 can receive the message including the periodic sleepschedule information and synchronize a data communication period withthe source device 601 according to the periodic sleep scheduleinformation.

According to an embodiment, the source device 601 can transmitsubstitute data 609 to the sink device 603 according to the periodicsleep schedule information. For example, the source device 601 cantransmit the substitute data over an active interval 617 of a period 615and stop transmitting the substitute data over a sleep interval 619.Next, the source device 601 can transmit the substitute data over anactive interval of a next period.

According to an embodiment, the sink device 603 can receive and outputthe substitute data according to the periodic sleep scheduleinformation. For example, the sink device 603 can receive the substitutedata over an active interval 617 of a period 615 and stop receiving thesubstitute data over a sleep interval 619.

According to an embodiment, when the display 260 is turned on, thesource device 601 can stop the substitute data transmission and setexisting schedule information (e.g., schedule information correspondingto the mirroring data).

According to an embodiment, the source device 601 can send a message 611including the existing schedule information to the sink device 603. Forexample, the message can include a beacon message, a probe responsemessage, or a separate P2P action frame. The source device 601 canchange a data communication period with the sink device 603 based on theexisting schedule information.

According to an embodiment, the sink device 603 can receive a message611 including the existing schedule information and synchronize the datacommunication period with the source device 601 according to theexisting schedule information.

According to an embodiment, the source device 601 can transmit mirroringdata to the sink device 603 according to the existing scheduleinformation. For example, when the existing schedule information doesnot include sleep interval information or the proportion of the sleepinterval in the existing schedule information is zero, the source device601 can transmit the mirroring data without stopping the transmission.

FIG. 7 illustrates another data transmission flows in a communicationsystem according to an embodiment of the present disclosure. Forexample, the communication system can include a source device 701 and asink device 703. For example, the source device 701 can be theelectronic device 101 of FIG. 1 or the first electronic device 401 ofFIG. 4. For example, the source device 701 can be a group client. Forexample, the sink device 703 can be the external electronic device 102of FIG. 1 or the second electronic device 403 of FIG. 4. For example,the sink device 703 can be a group owner.

For example, the source device 701 can be an electronic device includinga display (e.g., the display 260) and a battery (e.g., the battery 296).For example, the source device 701 can be a smartphone.

Referring to FIG. 7, the source device 701 can transmit mirroring data705 to the sink device 703. According to an embodiment, the sourcedevice 701 can transmit mirroring data 705 according to scheduleinformation corresponding to the mirroring data 705. For example, theschedule information corresponding to the mirroring data 705 may includean active interval and not include a sleep interval per period. Forexample, when the schedule information includes the proportion of theactive interval and the sleep interval per period, the proportion of theactive interval and the sleep interval per period of the scheduleinformation corresponding to the mirroring data 705 can be 1:0.

According to an embodiment, the sink device 703 can receive from thesource device 701 and output the mirroring data. When the display 260 ofthe source device 701 is turned off, the source device 701 can determineperiodic sleep schedule information based on substitute data. Forexample, the source device 701 can select the substitute data for themirroring data and determine the periodic sleep schedule informationcorresponding to the selected substitute data.

According to an embodiment, the source device 701 can generate a firstschedule change request message 707 based on the periodic sleep scheduleinformation and transmit the message to the sink device 703. Forexample, the first schedule change request message 707 can request theschedule change of the sink device 703. The first schedule changerequest message 707 can be a P2P action frame.

According to an embodiment, the first schedule change request message707 can include the periodic sleep schedule information. The firstschedule change request message 707 can include the periodic sleepschedule information and state information of the source device 701. Forexample, the state information of the source device 701 can includeinformation indicating the power-off of the display 260 of the sourcedevice 701.

According to an embodiment, in response to the first schedule changerequest message 707, the sink device 703 can generate and transmit afirst schedule change response message 709 to the source device 701. Thefirst schedule change response message 709 can include a response (e.g.,approval or rejection for the schedule change) for the first schedulechange request message 707.

According to an embodiment, the sink device 703 can determine whetherthe substitute data can be scheduled based on the periodic sleepschedule information of the first schedule change request message 707.When the scheduling is possible, the sink device 703 can generate andtransmit the first schedule change response message 709 including theschedule change approval. When the scheduling is infeasible, the sinkdevice 703 can generate and transmit the first schedule change responsemessage 709 including the schedule change rejection.

According to an embodiment, based on the state information of the sourcedevice 701 in the first schedule change request message 707, the sinkdevice 703 can output the state of the source device 701. For example,the sink device 703 can display information or output a voice indicatingthe power-off of the display 260 of the source device 701 or output acombination of them.

According to an embodiment, the sink device 703 can generate and send amessage 711 including the periodic sleep schedule information to thesource device 701. For example, the message 711 including the periodicsleep schedule information can be a beacon message, a probe responsemessage, or a separate P2P action frame.

According to an embodiment, when the scheduling changes, the sink device703 can generate and send the message 711 including the periodic sleepschedule information. The sink device 703 can change the datacommunication period with the source device 701 according to theperiodic sleep schedule information.

According to an embodiment, the source device 701 can synchronize withthe sink device 703 according to the periodic sleep scheduleinformation. For example, the source device 701 can receive the message711 including the periodic sleep schedule information and synchronizethe data communication period with the sink device 703 according to theperiodic sleep schedule information.

According to an embodiment, the source device 701 can transmitsubstitute data 713 to the sink device 703 according to the periodicsleep schedule information. The sink device 703 can receive and outputthe substitute data 713 according to the periodic sleep scheduleinformation.

According to an embodiment, when the display 260 is turned on, thesource device 701 can stop transmitting the substitute data 713 anddetermine existing schedule information (e.g., schedule informationcorresponding to the mirroring data).

According to an embodiment, the source device 701 can generate and senda second schedule change request message 715 to the sink device 703based on the existing schedule information. For example, the secondschedule change request message 715 can request the schedule change ofthe sink device 703. For example, the second schedule change requestmessage 715 can include the existing schedule information.

According to an embodiment, in response to the second schedule changerequest message 715, the sink device 703 can generate and send a secondschedule change response message 717 to the source device 701. Forexample, the second schedule change response message 717 can include aresponse (e.g., approval or rejection for the schedule change) for thesecond schedule change request message 715.

According to an embodiment, the sink device 703 can determine whetherthe mirroring data can be scheduled based on the existing sleep scheduleinformation of the second schedule change request message 715. When thescheduling is possible, the sink device 703 can generate and send thesecond schedule change response message 717 including the schedulechange approval. When the scheduling is infeasible, the sink device 703can generate and send the second schedule change response message 717including the schedule change rejection.

According to an embodiment, the sink device 703 can generate andtransmit a message 719 including the existing schedule information tothe source device 701. For example, when the scheduling changes, thesink device 703 can generate and transmit the message 719 including theexisting schedule information. The sink device 703 can change the datacommunication period according to the existing schedule information.

According to an embodiment, the source device 701 can synchronize withthe sink device 703 according to the existing schedule information. Forexample, the source device 701 can receive the message 719 including theexisting schedule information and synchronize the data communicationperiod with the sink device 703 according to the existing scheduleinformation.

According to an embodiment, the source device 701 can transmit mirroringdata to the sink device 703. For example, when the existing scheduleinformation does not include the sleep interval information or theproportion of the sleep interval in the existing schedule information iszero, the source device 701 can transmit the mirroring data withoutstopping the transmission.

FIG. 8 illustrates yet another data transmission flows in acommunication system according to an embodiment of the presentdisclosure. For example, the communication system can include a sourcedevice 801 and a sink device 803. For example, the source device 801 canbe the electronic device 101 of FIG. 1 or the first electronic device401 of FIG. 4. For example, the source device 801 can be a group owner.For example, the sink device 803 can be the external electronic device102 of FIG. 1 or the second electronic device 403 of FIG. 4. Forexample, the sink device 803 can be a group client.

For example, the source device 801 and the sink device 803 can beelectronic devices including a display (e.g., the display 260) and abattery (e.g., the battery 296). For example, the source device 801 canbe a smartphone, and the sink device 803 can be a notebook including thegreater display 260 than the smartphone.

Referring to FIG. 8, the source device 801 can transmit mirroring data805 to the sink device 803. According to an embodiment, the sourcedevice 801 can transmit mirroring data 805 according to scheduleinformation corresponding to the mirroring data 805.

According to an embodiment, the sink device 803 can receive and outputthe mirroring data 805. When the display 260 of the sink device 803 isturned off, the sink device 803 can determine periodic sleep scheduleinformation based on substitute data. For example, the periodic sleepschedule information can include information about the sleep intervaland the active interval to periodically deactivate or activate acommunication interface (e.g., the communication interface 220).

According to an embodiment, the sink device 803 can select substitutedata for the mirroring data. For example, the sink device 803 can selectpreset substitute data from a memory (e.g., the memory 230). Forexample, the sink device 803 can determine data selected by the userfrom at least one data stored in the memory (e.g., the memory 230), asthe substitute data.

According to an embodiment, the sink device 803 can determine periodicsleep schedule information corresponding to the selected substitutedata. For example, the sink device 803 can determine preset periodicsleep schedule information of the selected substitute data from thememory 230. For example, the sink device 803 can select one of multipleperiodic sleep schedule information stored in the memory 230 based on aproperty of the selected substitute data, and determine the selectedperiodic sleep schedule information as the periodic sleep scheduleinformation corresponding to the substitute data.

According to an embodiment, the sink device 803 can generate a thirdschedule change request message 807 based on the periodic sleep scheduleinformation and send the message to the source device 801. For example,the third schedule change request message 807 can request the schedulechange of the source device 801. For example, the third schedule changerequest message 807 can be a P2P action frame.

According to an embodiment, the third schedule change request message807 can include the periodic sleep schedule information. The thirdschedule change request message 807 can include the periodic sleepschedule information and state information of the sink device 803. Forexample, the state information of the sink device 803 can includeinformation indicating the power-off of the display 260 of the sinkdevice 803. The third schedule change request message 807 can include atleast one of the periodic sleep schedule information, the stateinformation of the sink device 803, and the substitute data.

According to an embodiment, in response to the third schedule changerequest message 807, the source device 801 can generate and send a thirdschedule change response message 809 to the sink device 803. Forexample, the third schedule change response message 809 can include aresponse (e.g., approval or rejection for the schedule change) for thethird schedule change request message 809.

According to an embodiment, the source device 801 can determine whetherthe substitute data can be scheduled based on the periodic sleepschedule information of the third schedule change request message 807.When the scheduling is possible, the source device 801 can generate andtransmit the third schedule change response message 809 including theschedule change approval. When the scheduling is infeasible, the sourcedevice 801 can generate and transmit the third schedule change responsemessage 809 including the schedule change rejection.

According to an embodiment, based on the state information of the sinkdevice 803 of the third schedule change request message 807, the sourcedevice 801 can output the state of the sink device 803. For example, thesource device 801 can display information or output a voice indicatingthe power-off of the display 260 of the sink device 803 or output acombination of them.

According to an embodiment, the source device 801 can generate and senda message 811 including the periodic sleep schedule information to thesink device 803. When the scheduling changes, the source device 801 cangenerate and send the message 811 including the periodic sleep scheduleinformation. The source device 801 can change the data communicationperiod with the sink device 803 according to the periodic sleep scheduleinformation.

According to an embodiment, the sink device 803 can synchronize with thesource device 801 according to the periodic sleep schedule information.For example, the sink device 803 can receive the message 811 includingthe periodic sleep schedule information and synchronize the datacommunication period with the source device 801 according to theperiodic sleep schedule information.

According to an embodiment, the source device 801 can transmitsubstitute data 813 to the sink device 803 according to the periodicsleep schedule information. For example, the substitute data can becontained in the third schedule change request message 807. The sinkdevice 803 can receive and output the substitute data 813 according tothe periodic sleep schedule information.

According to an embodiment, when the display 260 is turned on, the sinkdevice 803 can generate and send a fourth schedule change requestmessage 815 to the source device 801 based on existing scheduleinformation (e.g., schedule information corresponding to the mirroringdata). The fourth schedule change request message 815 can request theschedule change of the source device 801. The fourth schedule changerequest message 815 can be a P2P action frame. The fourth schedulechange request message 815 can include the existing scheduleinformation.

According to an embodiment, in response to the fourth schedule changerequest message 815, the source device 801 can generate and send afourth schedule change response message 817 to the sink device 803. Forexample, the fourth schedule change response message 817 can include aresponse (e.g., approval or rejection for the schedule change) for thefourth schedule change request message 815.

According to an embodiment, the source device 801 can generate and senda message 819 including the existing schedule information to the sinkdevice 803. When the scheduling changes, the source device 801 cangenerate and send the message 819 including the existing scheduleinformation. The source device 801 can change the data communicationperiod with the sink device 803 according to the existing scheduleinformation.

According to an embodiment, the sink device 803 can synchronize with thesource device 801 according to the existing schedule information. Forexample, the sink device 803 can receive the message 819 including theexisting schedule information and synchronize the data communicationperiod with the source device 801 according to the existing scheduleinformation.

According to an embodiment, the source device 801 can transmit mirroringdata to the sink device 803. For example, when the existing scheduleinformation does not include the sleep interval information or theproportion of the sleep interval in the existing schedule information iszero, the source device 801 can transmit the mirroring data withoutstopping the transmission.

FIG. 9 illustrates yet another data transmission flows in acommunication system according to an embodiment of the presentdisclosure. For example, the communication system can include a sourcedevice 901 and a sink device 903. For example, the source device 901 canbe the electronic device 101 of FIG. 1 or the first electronic device401 of FIG. 4. For example, the source device 901 can be a group client.For example, the sink device 903 can be the external electronic device102 of FIG. 1 or the second electronic device 403 of FIG. 4. Forexample, the sink device 903 can be a group owner.

For example, the source device 901 and the sink device 903 can beelectronic devices including a display (e.g., the display 260) and abattery (e.g., the battery 296). For example, the source device 901 canbe a smartphone, and the sink device 803 can be a notebook including thegreater display 260 than the smartphone.

Referring to FIG. 9, the source device 901 can transmit mirroring data905 to the sink device 903. According to an embodiment, the sourcedevice 901 can transmit mirroring data 905 according to scheduleinformation corresponding to the mirroring data 905.

According to an embodiment, the sink device 903 can receive and outputthe mirroring data 905. When the display 260 of the sink device 903 isturned off, the sink device 903 can set periodic sleep scheduleinformation based on substitute data. For example, the sink device 903can select substitute data for the mirroring data and determine theperiodic sleep schedule information corresponding to the selectedsubstitute data.

According to an embodiment, the sink device 903 can transmit a message907 including the periodic sleep schedule information to the sourcedevice 901. The sink device 903 can change the data communication periodwith the source device 901 according to the periodic scheduleinformation.

According to an embodiment, the source device 901 can synchronize withthe sink device 903 according to the periodic sleep scheduleinformation. For example, the source device 901 can receive the message907 including the periodic sleep schedule information and synchronizethe data communication period with the sink device 903 according to theperiodic sleep schedule information.

According to an embodiment, the source device 901 can transmitsubstitute data according to the periodic sleep schedule information.The sink device 903 can receive and output the substitute data accordingto the periodic sleep schedule information.

According to an embodiment, when the display 260 is turned on, the sinkdevice 903 can set existing schedule information (e.g., scheduleinformation corresponding to the mirroring data). The sink device 903can send a message 911 including the existing schedule information tothe source device 901. The sink device 903 can change the datacommunication period with the source device 901 based on the periodicsleep schedule information.

According to an embodiment, the source device 901 can receive a message911 including the existing schedule information and synchronize the datacommunication period with the sink device 903 according to the existingschedule information.

According to an embodiment, the source device 901 can transmit mirroringdata to the sink device 903. For example, when the existing scheduleinformation does not include sleep interval information or theproportion of the sleep interval in the existing schedule information iszero, the source device 901 can transmit the mirroring data withoutstopping the transmission.

FIG. 10 illustrates a flowchart of data transmission in an electronicdevice according to various embodiments of the present disclosure. Forexample, the electronic device can be the electronic device 101 of FIG.1 or the first electronic device 401 of FIG. 4. For example, theelectronic device 101 can serve as a source device and a group owner ora group client.

Referring to FIG. 10, in operation 1001, the electronic device 101 canoutput and transmit content to an external electronic device (e.g., theexternal electronic device 102). For example, the electronic device 101can provide a screen mirroring service to the external electronic device102 using the WiFi direct communication.

According to an embodiment, the electronic device 101 can transmit thecontent according to a corresponding schedule. For example, the schedule(or schedule information) can be the time information indicating theactive interval and the sleep interval of the communication interface(e.g., the communication interface 220 or the WIFI interface 223 of thecommunication interface 220) based on a preset period. For example, theschedule can be the proportion of the active interval and the sleepinterval in the period. For example, the active interval can deliverdata (e.g., content) by activating the communication interface 220. Forexample, the sleep interval cannot deliver data by deactivating thecommunication interface 220 so as to minimize the current consumption ofthe communication interface 220.

According to an embodiment, the schedule corresponding to the contentcan include the proportion 1:0 of the active interval and the sleepinterval of the period. For example, the schedule corresponding to thecontent can include only the active interval.

In operation 1003, the electronic device 101 can detect the electronicdevice's state in relation with the content output. For example, thestate of the electronic device 101 can include an active state, aninactive state, a low-power state, or a power-on state or a power-offstate of the display 260. For example, the state of the electronicdevice 101 can include a function state of the display 260, a contentchange, and a change of an application or a function (e.g., camera orcall) which reproduces the content.

In operation 1005, the electronic device 101 can select substitutecontent for the content based on the detected state of the electronicdevice 101. For example, the substitute content can be smaller than thecontent in size. For example, the substitute content can include animage, an audio, a video, or a combination of them.

According to an embodiment, when the display 260 is turned off, theelectronic device 101 can select the substitute content for the content.For example, the substitute content can be preset or pre-selected. Forexample, the substitute content can be selected by the user from atleast one content stored in a memory (e.g., the memory 230).

In operation 1007, the electronic device 101 can determine the schedulecorresponding to the selected substitute content. For example, theschedule corresponding to the selected substitute content can bedesignated or determined based on a property of the substitute content.For example, the property of the content can include at least one of acontent type (e.g., image, video, audio, or multimedia), a playback rate(e.g., a bit rate of video or a bit rate of audio), and a size. Forexample, the schedule can be determined such that a service qualityregarding the substitute content satisfies a preset level.

According to an embodiment, the electronic device 101 can determine apreset schedule corresponding to the selected substitute content. Forexample, the electronic device 101 can detect the preset schedulecorresponding to the selected substitute content and determine thedetected schedule as the schedule corresponding to the selectedsubstitute content.

According to an embodiment, the electronic device 101 can determine theschedule corresponding to the selected substitute content based on theproperty of the selected substitute content. For example, the electronicdevice 101 can check the property of the selected substitute content,detect the schedule from a plurality of schedules based on the property,and determine the detected schedule as the schedule corresponding to theselected substitute content.

For example, the electronic device 101 can check the type of theselected substitute content, and detect the schedule corresponding tothe checked type from the plurality of the schedules. For example, theelectronic device 101 can check the playback rate of the selectedsubstitute content and detect the schedule corresponding to the playbackrate from the plurality of the schedules. For example, the electronicdevice 101 can check the size of the selected substitute content anddetect the schedule corresponding to the size from the plurality of theschedules.

According to an embodiment, the schedule corresponding to the substitutecontent can include the proportion of the active interval and the sleepinterval per period, which is any one of 8:2, 7:3, 6:4, 5:5, 4:6, 3:7,and 2:8. For example, the active interval can be the activated intervaland the sleep interval can be the inactive interval. For example, theschedule can include the active interval and the inactive interval.

In operation 1009, the electronic device 101 can transmit the selectedsubstitute content based on the determined schedule, to the externalelectronic device 102. For example, when the proportion of the activeinterval and the sleep interval of the determined schedule is 3:7, theelectronic device 101 can transmit the selected substitute content for3/10 hours of one period and stop the selected substitute contenttransmission for 7/10 hours of one period.

For example, when the proportion of the active interval and the sleepinterval of the determined schedule is 2:8, the electronic device 101can transmit the selected substitute content for 2/10 hours of oneperiod and stop the selected substitute content transmission for 8/10hours of one period.

According to an embodiment, the electronic device 101 can detect otherstate of the electronic device after the substitute contenttransmission. When the other state satisfies a preset condition, theelectronic device 101 can transmit the content to the externalelectronic device 102. For example, the preset condition can includereturning to the state before the substitute content transmission. Forexample, the preset condition can include turning on the display 260.

According to an embodiment, when the other state satisfies the presetcondition, the electronic device 101 can transmit information forreleasing the schedule corresponding to the substitute content, to theexternal electronic device 102. For example, the schedule releaseinformation can request the schedule release.

FIG. 11 illustrates a flowchart of data transmission in a communicationsystem according to one embodiment of the present disclosure. Forexample, the communication system can include a source device 1101 and asink device 1103. For example, the source device 1101 can be theelectronic device 101 of FIG. 1 or the first electronic device 401 ofFIG. 4. For example, the source device 1101 can be a group owner. Forexample, the sink device 1103 can be the external electronic device 102of FIG. 1 or the second electronic device 403 of FIG. 4. For example,the sink device 1103 can be a group client.

Referring to FIG. 11, in operation 1105, the source device 1101 cantransmit mirroring data in the operation 1105 to the sink device 1103.For example, the mirroring data can indicate data which is output fromthe source device 1101. For example, the mirroring data can includevideo data, audio data, or multimedia data (e.g., a combination of videodata and audio data).

According to an embodiment, the source device 1101 can transmit themirroring data according to schedule information corresponding to themirroring data. For example, the schedule information corresponding tothe mirroring data can set the proportion of the active interval and thesleep interval per period to 1:0.

In operation 1107, the sink device 1103 can receive and output themirroring data. For example, when the mirroring data is video data, thesink device 1103 can display the video data through a display (e.g., thedisplay 260). For example, when the mirroring data is multimedia data,the sink device 1103 can display video data through the display 260 andconcurrently output audio data through a speaker (e.g., the speaker282).

In operation 1109, the source device 1101 can determine whether thesource device's display (e.g., the display 260) is turned off. When thedisplay 260 is turned off, the source device 1101 goes to operation1111. Otherwise, the source device 1101 can repeat operation 1105.

In operation 1111, the source device 1101 can set periodic sleepschedule information based on substitute data. For example, the periodicsleep schedule information can include information about the sleepinterval to periodically deactivate a communication interface (e.g., thecommunication interface 220). For example, the periodic sleep scheduleinformation can include the proportion of the active interval and thesleep interval of the period.

According to an embodiment, the source device 1101 can select substitutedata for the mirroring data. For example, the substitute data can bepreset or pre-selected. For example, the substitute data can be selectedby the user from at least one data stored in a memory (e.g., the memory230).

According to an embodiment, the source device 1101 can determine theperiodic sleep schedule information corresponding to the selectedsubstitute data. For example, the periodic sleep schedule informationcan be set to satisfy the QoS of the substitute data.

According to an embodiment, the source device 1101 can determine theperiodic sleep schedule information corresponding to the selectedsubstitute data. For example, the source device 1101 can detect presetperiodic sleep schedule information corresponding to the selectedsubstitute data from the memory 230 and determine the detected periodicsleep schedule information as the periodic sleep schedule informationcorresponding to the selected substitute data.

According to an embodiment, the source device 1101 can set the periodicsleep schedule information corresponding to the selected substitute databased on the property of the selected substitute data. For example, thesource device 1101 can check the property of the selected substitutedata, detect the periodic sleep schedule information from multipleperiodic sleep schedule information stored in the memory 230 based onthe property, and determine the detected periodic sleep scheduleinformation as the periodic sleep schedule information corresponding tothe selected substitute data.

For example, the source device 1101 can check the type of the selectedsubstitute data and detect the periodic sleep schedule informationcorresponding to the type from the multiple periodic sleep scheduleinformation. For example, the source device 1101 can check the playbackrate of the selected substitute data and detect the periodic sleepschedule information corresponding to the playback rate from themultiple periodic sleep schedule information. For example, the sourcedevice 1101 can check the size of the selected substitute data anddetect the periodic sleep schedule information corresponding to the sizefrom the multiple periodic sleep schedule information.

In operation 1113, the source device 1101 can send a message includingthe periodic sleep schedule information to the sink device 1103. Forexample, the message can include a beacon message, a probe responsemessage, or a P2P action frame.

In operation 1115, the sink device 1103 can synchronize with the sourcedevice 1101 according to the periodic sleep schedule information. Thesink device 1103 can receive the message including the periodic sleepschedule information and synchronize a data communication period withthe source device 1101 according to the periodic sleep scheduleinformation.

In operation 1117, the source device 1101 can transmit substitute datato the sink device 1103 according to the periodic sleep scheduleinformation. The source device 1101 can transmit the substitute dataaccording to the periodic sleep schedule information.

In operation 1119, the sink device 1103 can receive and output thesubstitute data. For example, the sink device 1103 can receive thesubstitute data according to the periodic sleep schedule information andoutput the substitute data instead of the mirroring data.

In operation 1121, the source device 1101 can determine whether thedisplay 260 is turned on. When the display 260 is turned on, the sourcedevice 1101 can proceed to operation 1123. Otherwise, the source device1101 can go to operation 1117.

In operation 1123, the source device 1101 can stop the substitute datatransmission and set existing schedule information (e.g., scheduleinformation corresponding to the mirroring data). In operation 1125, thesource device 1101 can send a message including the existing scheduleinformation to the sink device 1103. For example, the message caninclude a beacon message or a probe response message. The source device1101 can change the data communication period with the sink device 1103based on the existing schedule information.

In operation 1127, the sink device 1103 can receive a message includingthe existing schedule information and synchronize the data communicationperiod with the source device 1101 according to the existing scheduleinformation.

In operation 1129, the source device 1101 can transmit mirroring data tothe sink device 1103. For example, the source device 1101 can transmitthe mirroring data according to the existing schedule information.

FIG. 12 illustrates a flowchart of data transmission in a source deviceaccording to one embodiment of the present disclosure. For example, thesource device 1101 can be the electronic device 101 of FIG. 1 or thefirst electronic device 401 of FIG. 4. For example, the source device1101 can be the group owner. For example, the sink device 1103 can bethe external electronic device 102 of FIG. 1 or the second electronicdevice 403 of FIG. 4. For example, the sink device 1103 can be the groupclient.

Referring to FIG. 12, in operation 1201, the source device 1101 (e.g.,the processor 210) can transmit mirroring data. According to anembodiment, the processor 210 can transmit the mirroring data accordingto the schedule information corresponding to the mirroring data.

In operation 1203, the processor 210 can determine whether the display(e.g., the display 260) is turned off. When the display 260 is turnedoff, the processor 210 goes to operation 1205. Otherwise, the processor210 can repeat operation 1201.

In operation 1205, the processor 210 can set the periodic sleep scheduleinformation based on the substitute data. For example, the periodicsleep schedule information can include the information about the sleepinterval for periodically deactivating the communication interface(e.g., the communication interface 220).

According to an embodiment, the processor 210 can select the substitutedata for the mirroring data. The processor 210 can determine theperiodic sleep schedule information corresponding to the selectedsubstitute data. For example, the processor 210 can determine the presetperiodic sleep schedule information corresponding to the selectedsubstitute data. For example, the processor 210 can determine theperiodic sleep schedule information corresponding to the selectedsubstitute data based on the property of the selected substitute data.

In operation 1207, the processor 210 can send the message including theperiodic sleep schedule information to the sink device 1103. Inoperation 1209, the processor 210 can transmit the substitute data tothe sink device 1103 according to the periodic sleep scheduleinformation. For example, when the proportion of the active interval andthe sleep interval of the determined schedule is 3:7, the processor 210can transmit the substitute content for 3/10 hours of one period andstop the substitute content transmission for 7/10 hours of one period.

In operation 1211, the processor 210 can determine whether the display260 is turned on. When the display 260 is turned on, the processor 210can proceed to operation 1213. Otherwise, the processor 210 can repeatoperation 1209.

In operation 1213, the processor 210 can stop the substitute datatransmission and set the existing schedule information (e.g., scheduleinformation corresponding to the mirroring data). For example, theprocessor 210 can change the data communication period from the periodicsleep schedule information to the existing schedule information.

In operation 1215, the processor 210 can transmit the message includingthe existing schedule information to the sink device 1103 and then goback to operation 1201.

FIG. 13 illustrates a flowchart of data reception in a sink deviceaccording to one embodiment of the present disclosure. For example, thesource device 1101 can be the electronic device 101 of FIG. 1 or thefirst electronic device 401 of FIG. 4. For example, the source device1101 can be the group owner. For example, the sink device 1103 can bethe external electronic device 102 of FIG. 1 or the second electronicdevice 403 of FIG. 4. For example, the sink device 1103 can be the groupclient.

In operation 1301, the sink device 1101 (e.g., the processor 210) candetermine whether the mirroring data is received from the source device1101. According to an embodiment, the processor 210 can receive themirroring data according to the schedule information corresponding tothe mirroring data.

When receiving the mirroring data, the processor 210 goes to operation1303. Otherwise, the processor 210 repeats operation 1301.

In operation 1303, the processor 210 can output the received mirroringdata. In operation 1305, the processor 210 can determine whether themessage including the periodic sleep schedule information is receivedfrom the source device 1101. When receiving the message, the processor210 goes to operation 1307. Otherwise, the processor 210 can repeatoperation 1305.

In operation 1307, the processor 210 can synchronize with the sourcedevice 1101 according to the periodic sleep schedule information. Forexample, when the proportion of the active interval and the sleepinterval per period in the periodic sleep schedule information is 3:7,the processor 210 can control the communication interface 220 to receivethe substitute content for 3/10 hours of one period and to stop thesubstitute content reception for 7/10 hours of one period. For example,the processor 210 can control the power of the communication interface220 according to the periodic sleep schedule information. For example,the processor 210 can control the power of the WIFI interface 223 of thecommunication interface 220 according to the periodic sleep scheduleinformation.

In operation 1309, the processor 210 can determine whether thesubstitute data is received from the source device 1101. When receivingthe substitute data, the processor 210 goes to operation 1311.Otherwise, the processor 210 can repeat operation 1309.

In operation 1311, the processor 210 can output the substitute data. Forexample, when the substitute data is video data, the processor 210 candisplay the substitute data on the display 260. For example, when thesubstitute data is audio data, the processor 210 can output thesubstitute data through the speaker 282. For example, when thesubstitute data is multimedia data, the processor 210 can display thesubstitute data through the display 260 and the speaker 282.

In operation 1313, the processor 210 can determine whether the messageincluding the existing schedule information is received from the sourcedevice 1101. For example, the existing schedule information can be theschedule information corresponding to the mirroring data.

When receiving the message including the existing schedule information,the processor 210 goes to operation 1315. Otherwise, the processor 210can repeat operation 1313.

In operation 1315, the processor 210 can synchronize with the sourcedevice 1101 according to the existing schedule information and go tooperation 1301. When the proportion of the active interval and the sleepinterval per period is 1:0 in the existing schedule information, theprocessor 210 can control the communication interface 220 tocontinuously receive the mirroring data throughout the period. Forexample, the processor 210 can control the power of the communicationinterface 220 according to the existing schedule information. Forexample, the processor 210 can control the power of the WIFI interface223 of the communication interface 220 according to the existingschedule information.

FIG. 14 illustrates another flowchart of data transmission in acommunication system according to an embodiment of the presentdisclosure. For example, the communication system can include a sourcedevice 1401 and a sink device 1403. For example, the source device 1401can be the electronic device 101 of FIG. 1 or the first electronicdevice 401 of FIG. 4. For example, the source device 1401 can be a groupclient. For example, the sink device 1403 can be the external electronicdevice 102 of FIG. 1 or the second electronic device 403 of FIG. 4. Forexample, the sink device 1403 can be a group owner.

Referring to FIG. 14, in operation 1405, the source device 1401 cantransmit mirroring data to the sink device 1403. According to anembodiment, the source device 1401 can transmit mirroring data accordingto schedule information corresponding to the mirroring data. Forexample, the schedule information corresponding to the mirroring datacan set the proportion of the active interval and the sleep interval perperiod to 1:0.

In operation 1407, the sink device 1403 can receive and output themirroring data. In operation 1409, the source device 1401 can determinewhether the source device's display (e.g., the display 260) is turnedoff. When the display 260 is turned off, the source device 1401 goes tooperation 1411. Otherwise, the source device 1401 can repeat operation1405.

In operation 1411, the source device 1401 can set periodic sleepschedule information based on substitute data. For example, the periodicsleep schedule information can include information about the sleepinterval and the active interval to periodically deactivate or activatea communication interface (e.g., the communication interface 220).

According to an embodiment, the source device 1401 can select substitutedata for the mirroring data and determine periodic sleep scheduleinformation corresponding to the selected substitute data.

In operation 1413, the source device 1401 can generate and send a firstschedule change request message to the sink device 1403. The firstschedule change request message can be a P2P action frame.

According to an embodiment, the first schedule change request messagecan include the periodic sleep schedule information. The first schedulechange request message can include the periodic sleep scheduleinformation and state information of the source device 1401. Forexample, the state information of the source device 1401 can includeinformation indicating the power-off of the display 260 of the sourcedevice 1401.

In operation 1415, the sink device 1403 can generate and send a firstschedule change response message to the source device 1401 in responseto the first schedule change request message. For example, the firstschedule change response message can include a response (e.g., approvalor rejection for the schedule change) for the first schedule changerequest message.

According to an embodiment, the sink device 1403 can determine whetherthe substitute data can be scheduled based on the periodic sleepschedule information of the first schedule change request message. Whenthe scheduling is possible, the sink device 1403 can generate and sendthe first schedule change response message including the schedule changeapproval. When the scheduling is infeasible, the sink device 1403 cangenerate and send the first schedule change response message includingthe schedule change rejection.

According to an embodiment, based on the state information of the sourcedevice 1401 of the first schedule change request message, the sinkdevice 1403 can output the state of the source device 1401. For example,the sink device 1403 can display information or output a voiceindicating the power-off of the display 260 of the source device 1401 oroutput a combination of them.

In operation 1417, the sink device 1403 can generate and send a messageincluding the periodic sleep schedule information to the source device1401. For example, the message including the periodic sleep scheduleinformation can be a beacon message, a probe response message, or aseparate P2P action frame.

When the scheduling changes, the sink device 1403 can generate and sendto the source device 1401 the message including the periodic sleepschedule information. The sink device 1403 can change the datacommunication period from the schedule information corresponding to themirroring data to the periodic sleep schedule information.

In operation 1419, the source device 1401 can synchronize with the sinkdevice 1403 according to the periodic sleep schedule information. Forexample, the source device 1401 can receive the message including theperiodic sleep schedule information and synchronize the datacommunication period with the sink device 1403 according to the periodicsleep schedule information.

In operation 1421, the source device 1401 can transmit substitute datato the sink device 1403 according to the periodic sleep scheduleinformation. For example, when the proportion of the active interval andthe sleep interval per period is 3:7 in the periodic sleep scheduleinformation, the source device 1401 can transmit the substitute data for3/10 hours of one period and stop the substitute data transmission for7/10 hours of one period.

In operation 1423, the sink device 1403 can receive and output thesubstitute data. In operation 1425, the source device 1401 can determinewhether the display 260 is turned on. When the display 260 is turned on,the source device 1401 can proceed to operation 1427. Otherwise, thesource device 1401 can proceed to operation 1421.

In operation 1427, the source device 1401 can stop the substitute datatransmission and determine existing schedule information (e.g., scheduleinformation corresponding to the mirroring data).

In operation 1429, the source device 1401 can generate and send a secondschedule change request message to the sink device 1403. According to anembodiment, the second schedule change request message can be a P2Paction frame. The second schedule change request message can include theexisting schedule information.

In operation 1431, the sink device 1403 can generate and send a secondschedule change response message to the source device 1401 in responseto the second schedule change request message. For example, the secondschedule change response message can include a response (e.g., approvalor rejection for the schedule change) for the second schedule changerequest message.

According to an embodiment, the sink device 1403 can determine whetherthe mirroring data can be scheduled based on the existing sleep scheduleinformation of the second schedule change request message. When thescheduling is possible, the sink device 1403 can generate and send thesecond schedule change response message including the schedule changeapproval. When the scheduling is infeasible, the sink device 1403 cangenerate and send the second schedule change response message includingthe schedule change rejection.

In operation 1433, the sink device 1403 can generate and send a messageincluding the existing schedule information to the source device 1401.For example, the message including the existing schedule information canbe a beacon message, a probe response message, or a separate P2P actionframe.

According to an embodiment, when the scheduling is changed, the sinkdevice 1403 can generate and send a message including the existingschedule information to the source device 1401. The sink device 1403 canchange the data communication period according to the existing scheduleinformation.

In operation 1435, the source device 1401 can synchronize with the sinkdevice 1403 according to the existing schedule information. For example,the source device 1401 can receive the message including the existingschedule information and synchronize the data communication period withthe sink device 1403 according to the existing schedule information.

In operation 1437, the source device 1401 can transmit mirroring data tothe sink device 1403. For example, the source device 1401 can transmitthe mirroring data according to the existing schedule information.

FIGS. 15A and 15B illustrate flowcharts of data transmission in a sourcedevice according to an embodiment of the present disclosure. Forexample, the source device 1401 can be the electronic device 101 of FIG.1 or the first electronic device 401 of FIG. 4. For example, the sourcedevice 1401 can be the group client. For example, the sink device 1403can be the external electronic device 102 of FIG. 1 or the secondelectronic device 403 of FIG. 4. For example, the sink device 1403 canbe the group owner.

Referring to FIGS. 15A and 15B, in operation 1501, the source device1401 (e.g., the processor 210) can transmit the mirroring data.According to an embodiment, the processor 210 can transmit the mirroringdata according to the schedule information corresponding to themirroring data.

In operation 1503, the processor 210 can determine whether the display(e.g., the display 260) is turned off. When the display 260 is turnedoff, the processor 210 goes to operation 1505. Otherwise, the processor210 can repeat operation 1501.

In operation 1505, the processor 210 can determine the periodic sleepschedule information based on the substitute data. For example, theperiodic sleep schedule information can include the information aboutthe sleep interval for periodically deactivating the communicationinterface (e.g., the communication interface 220).

According to an embodiment, the processor 210 can select the substitutedata for the mirroring data. The processor 210 can set the periodicsleep schedule information corresponding to the selected substitutedata. For example, the processor 210 can set the preset periodic sleepschedule information corresponding to the selected substitute data. Forexample, the processor 210 can determine the periodic sleep scheduleinformation corresponding to the selected substitute data based on theproperty of the selected substitute data.

In operation 1507, the processor 210 can send the first schedule changerequest message to the sink device 1403. For example, the first schedulechange request message can request the schedule change of the sinkdevice 1403. For example, the first schedule change request message caninclude the periodic sleep schedule information.

In operation 1509, the processor 210 can determine whether the firstschedule change response message is received from the sink device 1403.For example, the first schedule change response message is the responsemessage of the first schedule change request message and can include theresponse (e.g., approval or rejection for the schedule change) for theschedule change.

Upon receiving the first schedule change response message, the processor210 goes to operation 1511. Otherwise, the processor 210 can repeatoperation 1509.

In operation 1511, the processor 210 can determine based on the firstschedule change response message whether the sink device 1403 approvesthe schedule change. When the schedule change is approved, the processor210 goes to operation 1517. Otherwise, for example, when the schedulechange is rejected, the processor 210 can go to operation 1513.

In operation 1513, the processor 210 can transmit the substitute dataaccording to the existing schedule information (e.g., the scheduleinformation corresponding to the mirroring data). In operation 1515, theprocessor 210 can determine whether the display 260 is turned on. Whenthe display 260 is turned on, the processor 210 can proceed to operation1501. Otherwise, the processor 210 can proceed to operation 1513.

In operation 1517, the processor 210 can determine whether the messageincluding the periodic sleep schedule information is received from thesink device 1403. When receiving the message, the processor 210 canproceed to operation 1519. Otherwise, the processor 210 can repeatoperation 1517.

In operation 1519, the processor 210 can synchronize with the sinkdevice 1403 according to the periodic sleep schedule information. Forexample, when the proportion of the active interval and the sleepinterval of the periodic sleep schedule information is 3:7, theprocessor 210 can control the communication interface 220 to transmitthe substitute data for 3/10 hours of one period and to stop thesubstitute data transmission for 7/10 hours of one period.

For example, the processor 210 can control the power of thecommunication interface 220 according to the periodic sleep scheduleinformation. For example, the processor 210 can control the power of theWIFI interface 223 of the communication interface 220 according to theperiodic sleep schedule information.

In operation 1521, the processor 210 can transmit the substitute data tothe sink device 1403. For example, the processor 210 can transmit thesubstitute data according to the periodic sleep schedule information.

In operation 1523, the processor 210 can determine whether the display260 is turned on. When the display 260 is turned on, the processor 210can proceed to operation 1525. Otherwise, the processor 210 can proceedto operation 1521.

In operation 1525, the processor 210 can stop the substitute datatransmission and determine the existing schedule information (e.g., theschedule information corresponding to the mirroring data).

In operation 1527, the processor 210 can send the second schedule changerequest message. For example, the second schedule change request messagecan request the schedule change. For example, the second schedule changerequest message can include the existing schedule information.

In operation 1529, the processor 210 can determine whether the secondschedule change response message is received from the sink device 1403.For example, the second schedule change response message is the responsemessage of the second schedule change request message and can includethe response (e.g., approval or rejection for the schedule change) forthe schedule change.

Upon receiving the second schedule change response message, theprocessor 210 goes to operation 1531. Otherwise, the processor 210 canrepeat operation 1529.

In operation 1531, the processor 210 can determine based on the secondschedule change response message whether the sink device 1403 approvesthe schedule change. When the schedule change is approved, the processor210 goes to operation 1533. Otherwise, for example, when the schedulechange is rejected, the processor 210 can transmit the second schedulechange request message until the schedule change is approved inoperation 1527.

In operation 1533, the processor 210 can determine whether the messageincluding the existing schedule information is received from the sinkdevice 1403. When receiving the message, the processor 210 can proceedto operation 1535. Otherwise, the processor 210 can repeat operation1533.

The processor 210 can synchronize with the sink device 1403 according tothe existing schedule information in operation 1535 and then proceed tooperation 1501. When the proportion of the active interval and the sleepinterval per period is 1:0 in the existing schedule information, theprocessor 210 can control the communication interface 220 tocontinuously transmit the mirroring data throughout the period. Theprocessor 210 can control the power of the communication interface 220according to the existing schedule information. The processor 210 cancontrol the power of the WIFI interface 223 of the communicationinterface 220 according to the existing schedule information.

FIG. 16 illustrates a flowchart of data reception in a sink deviceaccording to an embodiment of the present disclosure. For example, thesource device 1401 can be the electronic device 101 of FIG. 1 or thefirst electronic device 401 of FIG. 4. For example, the source device1401 can be the group client. For example, the sink device 1403 can bethe external electronic device 102 of FIG. 1 or the second electronicdevice 403 of FIG. 4. For example, the sink device 1403 can be the groupowner.

In operation 1601, the sink device 1403 (e.g., the processor 210) candetermine whether the mirroring data is received from the source device1401. According to an embodiment, the processor 210 can receive themirroring data according to schedule information corresponding to themirroring data.

When receiving the mirroring data, the processor 210 goes to operation1603. Otherwise, the processor 210 can repeat operation 1601.

In operation 1603, the processor 210 can output the received mirroringdata. In operation 1605, the processor 210 can determine whether thefirst schedule change request message is received from the source device1401. When receiving the first schedule change request message, theprocessor 210 goes to operation 1607. Otherwise, the processor 210 canrepeat operation 1605.

In operation 1607, the processor 210 can send the first schedule changeresponse message to the source device 1401 in response to the firstschedule change request message. The processor 210 can determine whetherthe schedule can be changed based on the periodic sleep scheduleinformation of the first schedule change request message, and generateand send the first schedule change response message including adetermination result (e.g., approval or rejection for the schedulechange).

In operation 1609, the processor 210 can send the message including theperiodic sleep schedule information to the source device 1401. When thescheduling changes, the processor 210 can generate and send the messageincluding the periodic sleep schedule information to the source device1401. The processor 210 can change the data communication periodaccording to the periodic sleep schedule information.

In operation 1611, the processor 210 can determine whether substitutedata is received from the source device 1401. For example, the processor210 can receive the substitute data according to the periodic sleepschedule information. When receiving the substitute data, the processor210 goes to operation 1613. Otherwise, the processor 210 can repeatoperation 1611.

In operation 1613, the processor 210 can output the substitute data. Inoperation 1615, the processor 210 can determine whether the secondschedule change request message is received from the source device 1401.For example, the second schedule change request message can include theexisting schedule information (e.g., the schedule informationcorresponding to the mirroring data).

When receiving the second schedule change request message, the processor210 goes to operation 1617. Otherwise, the processor 210 can repeatoperation 1615.

In operation 1617, the processor 210 can send the second schedule changeresponse message to the source device 1401 in response to the secondschedule change request message. The processor 210 can determine whetherthe schedule can be changed based on the periodic sleep scheduleinformation of the second schedule change request message, and generateand send the second schedule change response message including adetermination result (e.g., approval or rejection for the schedulechange).

The processor 210 can send the message including the existing scheduleinformation to the source device 1401 in operation 1619 and then go tooperation 1601. When changing the schedule based on the existingschedule information, the processor 210 can generate and send to thesource device 1401 the message including the existing scheduleinformation. The processor 210 can change the data communication periodaccording to the existing schedule information.

FIG. 17 illustrates yet another flowchart of data transmission in acommunication system according to an embodiment of the presentdisclosure. For example, the communication system can include a sourcedevice 1701 and a sink device 1703. For example, the source device 1701can be the electronic device 101 of FIG. 1 or the first electronicdevice 401 of FIG. 4. For example, the source device 1701 can be a groupowner. For example, the sink device 1703 can be the external electronicdevice 102 of FIG. 1 or the second electronic device 403 of FIG. 4. Forexample, the sink device 1703 can be a group client.

For example, the source device 1701 and the sink device 1703 can beelectronic devices including a display (e.g., the display 260) and abattery (e.g., the battery 296). For example, the source device 1701 canbe a smartphone, and the sink device 1703 can be a notebook includingthe greater display 260 than the smartphone.

Referring to FIG. 17, in operation 1705, the source device 1701 cantransmit mirroring data to the sink device 1703. According to anembodiment, the source device 1701 can transmit mirroring data accordingto schedule information corresponding to the mirroring data. Forexample, the schedule information corresponding to the mirroring datacan set the proportion of the active interval and the sleep interval perperiod to 1:0.

In operation 1707, the sink device 1703 can receive and output themirroring data. In operation 1709, the sink device 1703 can determinewhether the sink's display 260 is turned off. When the display 260 isturned off, the sink device 1703 can proceed to operation 1711.Otherwise, the sink device 1703 can proceed to operation 1707.

In operation 1711, the sink device 1703 can determine periodic sleepschedule information based on substitute data. For example, the periodicsleep schedule information can include information about the sleepinterval and the active interval to periodically deactivate or activatea communication interface (e.g., the communication interface 220).

According to an embodiment, the sink device 1703 can select thesubstitute data for the mirroring data. For example, the substitute datacan be preset. For example, the substitute data can be selected by theuser from at least one data stored in a memory (e.g., the memory 230).For example, the substitute data can be determined by the user beforereceiving the mirroring data or when turning off the display 260.

According to an embodiment, the sink device 1703 can determine periodicsleep schedule information corresponding to the selected substitutedata. For example, the periodic sleep schedule information correspondingto the selected substitute data can be determined by the selectedsubstitute data or based on the property of the selected substitutedata.

In operation 1713, the sink device 1703 can generate and send a thirdschedule change request message to the source device 1701. The thirdschedule change request message can be a P2P action frame.

According to an embodiment, the third schedule change request messagecan include the periodic sleep schedule information. The third schedulechange request message can include the periodic sleep scheduleinformation and state information of the sink device 1703. For example,the state information of the sink device 1703 can include informationindicating the power-off of the display 260 of the sink device 1703.

According to an embodiment, the third schedule change request messagecan include at least one of the periodic sleep schedule information, thestate information of the sink device 1703, and the substitute data.

In operation 1715, in response to the third schedule change requestmessage, the source device 1701 can generate and send a third schedulechange response message to the sink device 1703. For example, the thirdschedule change response message can include a response (e.g., approvalor rejection for the schedule change) for the third schedule changerequest message.

According to an embodiment, the source device 1701 can determine whetherthe substitute data can be scheduled based on the periodic sleepschedule information of the third schedule change request message. Whenthe scheduling is possible, the source device 1701 can generate and sendthe third schedule change response message including the schedule changeapproval. When the scheduling is infeasible, the source device 1701 cangenerate and send the third schedule change response message includingthe schedule change rejection.

According to an embodiment, based on the state information of the sinkdevice 1703 of the third schedule change request message, the sourcedevice 1701 can output the state of the sink device 1703. For example,the source device 1701 can display information or output a voiceindicating the power-off of the display 260 of the sink device 1703 oroutput a combination of them.

In operation 1717, the source device 1701 can generate and send amessage including the periodic sleep schedule information to the sinkdevice 1703. For example, the message including the periodic sleepschedule information can be a beacon message, a probe response message,or a separate P2P action frame.

According to an embodiment, when the scheduling changes, the sourcedevice 1701 can generate and send the message including the periodicsleep schedule information to the sink device 1703. The source device1701 can change the data communication period according to the periodicsleep schedule information.

In operation 1719, the sink device 1703 can synchronize with the sourcedevice 1701 according to the periodic sleep schedule information. Forexample, the sink device 1703 can receive the message including theperiodic sleep schedule information and synchronize the datacommunication period with the source device 1701 according to theperiodic sleep schedule information.

In operation 1721, the source device 1701 can transmit substitute datato the sink device 1703 according to the periodic sleep scheduleinformation. For example, the substitute data can be contained in thethird schedule change request message. For example, when the proportionof the active interval and the sleep interval of the periodic sleepschedule information is 3:7, the source device 1701 can transmit theselected substitute content for 3/10 hours of one period and stop thesubstitute data transmission for 7/10 hours of one period.

In operation 1723, the sink device 1703 can receive and output thesubstitute data. In operation 1725, the sink device 1703 can determinewhether the display 260 is turned on. When the display 260 is turned on,the sink device 1703 can proceed to operation 1727. Otherwise, the sinkdevice 1703 can proceed to operation 1723.

In operation 1727, the sink device 1703 can determine existing scheduleinformation (e.g., the schedule information corresponding to themirroring data).

In operation 1729, the sink device 1703 can generate and send a fourthschedule change request message to the source device 1701. The fourthschedule change request message can be a P2P action frame. The fourthschedule change request message can include the existing scheduleinformation.

In operation 1731, in response to the fourth schedule change requestmessage, the source device 1701 can generate and send a fourth schedulechange response message to the sink device 1703. For example, the fourthschedule change response message can include a response (e.g., approvalor rejection for the schedule change) for the fourth schedule changerequest message.

According to an embodiment, the source device 1701 can determine whetherthe mirroring data can be scheduled based on the existing scheduleinformation of the fourth schedule change request message. When thescheduling is possible, the source device 1701 can generate and send thefourth schedule change response message including the schedule changeapproval. When the scheduling is infeasible, the source device 1701 cangenerate and send the fourth schedule change response message includingthe schedule change rejection.

In operation 1733, the source device 1701 can generate and send amessage including the existing schedule information to the sink device1703. For example, the message including the existing scheduleinformation can be a beacon message, a probe response message, or aseparate P2P action frame.

According to an embodiment, when the scheduling changes, the sourcedevice 1701 can generate and send the message including the existingschedule information to the sink device 1703. The source device 1701 canchange the data communication period according to the existing scheduleinformation.

In operation 1735, the sink device 1703 can synchronize with the sourcedevice 1701 according to the existing schedule information. For example,the sink device 1703 can receive the message including the existingschedule information and synchronize the data communication period withthe source device 1701 according to the existing schedule information.

In operation 1737, the source device 1701 can transmit mirroring data tothe sink device 1703. For example, the source device 1701 can transmitthe mirroring data according to the existing schedule information.

FIG. 18 illustrates yet another flowchart of data transmission in asource device according to an embodiment of the present disclosure. Forexample, the source device 1701 can be the electronic device 101 of FIG.1 or the first electronic device 401 of FIG. 4. For example, the sourcedevice 1701 can be the group owner. For example, the sink device 1703can be the external electronic device 102 of FIG. 1 or the secondelectronic device 403 of FIG. 4. For example, the sink device 1703 canbe the group client.

Referring to FIG. 18, in operation 1801, the source device 1701 (e.g.,the processor 210) can transmit the mirroring data. According to anembodiment, the processor 210 can transmit the mirroring data accordingto the schedule information corresponding to the mirroring data.

In operation 1803, the processor 210 can determine whether the thirdschedule change request message is received from the sink device 1703.When receiving the third schedule change request message, the processor210 goes to operation 1805. Otherwise, the processor 210 can repeatoperation 1803.

In operation 1805, the processor 210 can send the third schedule changeresponse message to the sink device 1703 in response to the thirdschedule change request message. The processor 210 can determine whetherthe schedule can be changed based on the periodic sleep scheduleinformation of the third schedule change request message, and generateand send the third schedule change response message including theresponse (e.g., approval or rejection for the schedule change).

In operation 1807, the processor 210 can send the message including theperiodic sleep schedule information to the sink device 1703. When theschedule (e.g., the data communication period) is changed based on theperiodic sleep schedule information, the processor 210 can generate andsend the message including the periodic sleep schedule information. Theprocessor 210 can change the data communication period according to theperiodic sleep schedule information.

In operation 1809, the processor 210 can transmit the substitute data tothe sink device 1703. In operation 1811, the processor 210 can determinewhether the fourth schedule change request message is received from thesink device 1703. For example, the fourth schedule change requestmessage can include the existing schedule information (e.g., theschedule information corresponding to the mirroring data).

Upon receiving the fourth schedule change request message, the processor210 goes to operation 1813. Otherwise, the processor 210 can repeatoperation 1811.

In operation 1813, the processor 210 can generate and send the fourthschedule change response message to the sink device 1703 in response tothe fourth schedule change request message. The processor 210 candetermine whether the schedule can be changed based on the periodicsleep schedule information of the fourth schedule change requestmessage, and generate and send the fourth schedule change responsemessage including the determination result (e.g., approval or rejectionfor the schedule change).

The processor 210 can send the message including the existing scheduleinformation to the sink device 1703 in operation 1815 and then proceedto operation 1801. When the schedule is changed based on the existingschedule information, the processor 210 can generate and send themessage including the existing schedule information. The processor 210can change the data communication period according to the existingschedule information.

FIGS. 19A and 19B illustrate flowcharts of data reception in a sinkdevice according to an embodiment of the present disclosure. Forexample, the source device 1701 can be the electronic device 101 of FIG.1 or the first electronic device 401 of FIG. 4. For example, the sourcedevice 1701 can be the group owner. For example, the sink device 1703can be the external electronic device 102 of FIG. 1 or the secondelectronic device 403 of FIG. 4. For example, the sink device 1403 canbe the group client.

Referring to FIGS. 19A and 19B, in operation 1901, the sink device 1703(e.g., the processor 210) can determine whether the mirroring data isreceived from the source device 1701. According to an embodiment, theprocessor 210 can receive the mirroring data according to the scheduleinformation corresponding to the mirroring data.

When receiving the mirroring data, the processor 210 goes to operation1903. Otherwise, the processor 210 can repeat operation 1901.

In operation 1903, the processor 210 can output the mirroring data. Inoperation 1905, the processor 210 can determine whether the display(e.g., the display 260) is turned off. When the display 260 is turnedoff, the processor 210 can proceed to operation 1907. Otherwise, theprocessor 210 can proceed to operation 1903.

In operation 1907, the processor 210 can determine the periodic sleepschedule information based on the substitute data. For example, theperiodic sleep schedule information can include the information aboutthe sleep interval for periodically deactivating the communicationinterface (e.g., the communication interface 220).

According to an embodiment, the processor 210 can select the substitutedata for the mirroring data. The processor 210 can determine theperiodic sleep schedule information of the selected substitute data. Forexample, the processor 210 can determine preset periodic sleep scheduleinformation of the selected substitute data. For example, the processor210 can determine the periodic sleep schedule information correspondingto the selected substitute data on the property of the selectedsubstitute data.

In operation 1909, the processor 210 can send the third schedule changerequest message to the source device 1701. For example, the thirdschedule change request message can request the schedule change of thesource device 1701. For example, the third schedule change requestmessage can include the periodic sleep schedule information.

In operation 1911, the processor 210 can determine whether the thirdschedule change response message is received from the source device1701. For example, the third schedule change response message is theresponse message for the third schedule change request message and caninclude the schedule change response (e.g., approval or rejection forthe schedule change).

When receiving the third schedule change response message, the processor210 goes to operation 1913. Otherwise, the processor 210 can repeatoperation 1911.

In operation 1913, the processor 210 can determine whether the sourcedevice 1701 approves the schedule change based on the third schedulechange response message. When the schedule change is approved, theprocessor 210 goes to operation 1919. Otherwise, the processor 210 cango to operation 1915.

In operation 1915, the processor 210 can transmit the substitute dataaccording to the existing schedule information (e.g., the scheduleinformation corresponding to the mirroring data). In operation 1917, theprocessor 210 can determine whether the display 260 is turned on. Whenthe display 260 is turned on, the processor 210 can proceed to operation1901. Otherwise, the processor 210 can proceed to operation 1915.

In operation 1919, the processor 210 can determine whether the messageincluding the periodic sleep schedule information is received from thesource device 1701. When receiving the message, the processor 210 goesto operation 1921. Otherwise, the processor 210 can repeat operation1919.

In operation 1921, the processor 210 can synchronize with the sourcedevice 1701 according to the periodic sleep schedule information. Forexample, when the proportion of the active interval and the sleepinterval of the periodic sleep schedule information is 3:7, theprocessor 210 can control the communication interface 220 to transmitthe substitute content for 3/10 hours of one period and to stop thesubstitute content transmission for 7/10 hours of one period.

According to an embodiment, the processor 210 can control the power ofthe communication interface 220 according to the periodic sleep scheduleinformation. For example, the processor 210 can control the power of theWIFI interface 223 of the communication interface 220 according to theperiodic sleep schedule information.

In operation 1923, the processor 210 can determine whether thesubstitute data is received from the source device 1701. For example,the processor 210 can receive the substitute data according to theperiodic sleep schedule information. When receiving the substitute data,the processor 210 goes to operation 1925. Otherwise, the processor 210can repeat operation 1923.

In operation 1925, the processor 210 can output the substitute data. Inoperation 1927, the processor 210 can determine whether the display 260is turned on. When the display 260 is turned on, the processor 210 canproceed to operation 1929. Otherwise, the processor 210 can proceed tooperation 1925.

In operation 1929, the processor 210 can stop the substitute datatransmission and determine the existing schedule information (e.g., theschedule information corresponding to the mirroring data).

In operation 1931, the processor 210 can send the fourth schedule changerequest message. For example, the fourth schedule change request messagecan request the schedule change of the source device 1701. For example,the fourth schedule change request message can include the existingschedule information.

In operation 1933, the processor 210 can determine whether the fourthschedule change response message is received from the source device1701. For example, the fourth schedule change response message is theresponse message for the fourth schedule change request message and caninclude the schedule change response (e.g., approval or rejection).

Upon receiving the fourth schedule change response message, theprocessor 210 goes to operation 1935. Otherwise, the processor 210 canrepeat operation 1933.

In operation 1935, the processor 210 can determine whether the sourcedevice 1701 approves the schedule change based on the fourth schedulechange response message. When the schedule change is approved, theprocessor 210 goes to operation 1937. Otherwise, for example, when theschedule change is rejected, the processor 210 can send the fourthschedule change response message until the schedule change is approvedin operation 1931.

In operation 1937, the processor 210 can determine whether the messageincluding the existing schedule information is received from the sourcedevice 1701. When receiving the message, the processor 210 goes tooperation 1939. Otherwise, the processor 210 can repeat operation 1937.

The processor 210 can synchronize with the source device 1701 accordingto the existing schedule information in operation 1939 and then proceedto operation 1901. When the proportion of the active interval and thesleep interval per period is 1:0 in the existing schedule information,the processor 210 can control the communication interface 220 tocontinuously receive the mirroring data throughout the period. Forexample, the processor 210 can control the power of the communicationinterface 220 according to the existing schedule information. Forexample, the processor 210 can control the power of the WIFI interface223 of the communication interface 220 according to the existingschedule information.

FIG. 20 illustrates yet another flowchart of data transmission in acommunication system according to an embodiment of the presentdisclosure. For example, the communication system can include a sourcedevice 2001 and a sink device 2003. For example, the source device 2001can be the electronic device 101 of FIG. 1 or the first electronicdevice 401 of FIG. 4. For example, the source device 2001 can be a groupclient. For example, the sink device 2003 can be the external electronicdevice 102 of FIG. 1 or the second electronic device 403 of FIG. 4. Forexample, the sink device 2003 can be a group owner.

For example, the source device 2001 and the sink device 2003 can beelectronic devices including a display (e.g., the display 260) and abattery (e.g., the battery 296). For example, the source device 2001 canbe a smartphone, and the sink device 2003 can be a notebook includingthe greater display 260 than the smartphone.

Referring to FIG. 20, in operation 2005, the source device 2001 cantransmit mirroring data to the sink device 2003. According to anembodiment, the source device 2001 can transmit mirroring data accordingto schedule information corresponding to the mirroring data. Forexample, the schedule information corresponding to the mirroring datacan set the proportion of the active interval and the sleep interval perperiod to 1:0.

In operation 2007, the sink device 2003 can receive and output themirroring data. In operation 2009, the sink device 1703 can determinewhether the sink device's display (e.g., the display 260) is turned off.When the display 260 is turned off, the sink device 2003 goes tooperation 2011. Otherwise, the sink device 2003 can repeat operation2007.

In operation 2011, the sink device 2003 can set periodic sleep scheduleinformation based on substitute data. For example, the periodic sleepschedule information can include information about the sleep intervaland the active interval to periodically deactivate or activate acommunication interface (e.g., the communication interface 220).According to an embodiment, the sink device 2003 can select thesubstitute data for the mirroring data and determine the periodic sleepschedule information corresponding to the selected substitute data.

In operation 2013, the sink device 2003 can send a message including theperiodic sleep schedule information to the source device 2001.

In operation 2015, the source device 2001 can synchronize with the sinkdevice 2003 according to the periodic sleep schedule information. Thesource device 2001 can receive the message including the periodic sleepschedule information and synchronize the data communication period withthe sink device 2003 according to the periodic sleep scheduleinformation.

In operation 2017, the source device 2001 can transmit the substitutedata to the sink device 2003 according to the periodic sleep scheduleinformation. For example, when the proportion of the active interval andthe sleep interval of the periodic sleep schedule information is 3:7,the source device 2001 can transmit the substitute data for 3/10 hoursof one period and stop the substitute data transmission for 7/10 hoursof one period.

In operation 2019, the sink device 2003 can receive and output thesubstitute data. For example, the sink device 2003 can output thesubstitute data instead of the mirroring data.

In operation 2021, the sink device 2003 can determine whether thedisplay 260 is turned on. When the display 260 is turned on, the sinkdevice 2003 can proceed to operation 2023. Otherwise, the sink device2003 can proceed to operation 2019.

In operation 2023, the sink device 2003 can set existing scheduleinformation (e.g., schedule information corresponding to the mirroringdata). According to an embodiment, the sink device 2003 can change adata communication period according to the periodic sleep scheduleinformation. In operation 2025, the sink device 2003 can send a messageincluding the existing schedule information to the source device 2001.

In operation 2027, the source device 2001 can receive the messageincluding the existing schedule information and synchronize the datacommunication period with the source device 2001 according to theexisting schedule information.

In operation 2029, the source device 2001 can transmit mirroring data tothe sink device 2003. According to an embodiment, the source device 2001can transmit the mirroring data according to the existing scheduleinformation.

FIG. 21 illustrates yet another flowchart of data transmission in asource device according to an embodiment of the present disclosure. Forexample, the source device 2001 can be the electronic device 101 of FIG.1 or the first electronic device 401 of FIG. 4. For example, the sourcedevice 2001 can be the group client. For example, the sink device 2003can be the external electronic device 102 of FIG. 1 or the secondelectronic device 403 of FIG. 4. For example, the sink device 2003 canbe the group owner.

In operation 2101, the source device 2001 (e.g., the processor 210) cantransmit the mirroring data to the sink device 2003. According to anembodiment, the processor 210 can transmit the mirroring data accordingto the schedule information corresponding to the mirroring data.

In operation 2103, the processor 210 can determine whether the messageincluding the periodic sleep schedule information is received from thesink device 2003. When receiving the message, the processor 210 canproceed to operation 2105. Otherwise, the processor 210 can repeatoperation 2103.

In operation 2105, the processor 210 can synchronize with the sinkdevice 2003 according to the periodic sleep schedule information.According to an embodiment, the processor 210 can control the power ofthe communication interface 220 (e.g., the WIFI interface 223) accordingto the periodic sleep schedule information. When the proportion of theactive interval and the sleep interval per period of the existingschedule information is 3:7, the processor 210 can control thecommunication interface 220 (e.g., the WIFI interface 223) to transmitthe substitute data for 3/10 hours of one period and to stop thesubstitute data transmission for 7/10 hours of one period.

In operation 2107, the processor 210 can transmit the substitute data tothe sink device 2003. According to an embodiment, the processor 210 cantransmit the substitute data according to the periodic sleep scheduleinformation.

In operation 2109, the processor 210 can determine whether the messageincluding the existing schedule information is received from the sinkdevice 2003. For example, the existing schedule information can be theschedule information corresponding to the mirroring data.

When receiving the message including the existing schedule information,the processor 210 can proceed to operation 2111. Otherwise, theprocessor 210 can repeat operation 2109.

The processor 210 can synchronize with the sink device 2003 according tothe existing schedule information in operation 2111 and then proceed tooperation 2101. According to an embodiment, the processor 210 cancontrol the power of the communication interface 220 (e.g., the WIFIinterface 223) according to the existing sleep schedule information.When the proportion of the active interval and the sleep interval perperiod is 1:0 in the existing schedule information, the processor 210can control the communication interface 220 (e.g., the WIFI interface223) to continuously transmit the mirroring data throughout the period.

FIG. 22 illustrates yet another flowchart of data reception in a sinkdevice according to an embodiment of the present disclosure. Forexample, the source device 2001 can be the electronic device 101 of FIG.1 or the first electronic device 401 of FIG. 4. For example, the sourcedevice 2001 can be the group client. For example, the sink device 2003can be the external electronic device 102 of FIG. 1 or the secondelectronic device 403 of FIG. 4. For example, the sink device 2003 canbe the group owner.

Referring to FIG. 22, in operation 2201, the sink device 2003 (e.g., theprocessor 210) can determine whether the mirroring data is received fromthe source device 2001. According to an embodiment, the processor 210can receive the mirroring data according to the schedule informationcorresponding to the mirroring data.

When receiving the mirroring data, the processor 210 goes to operation2203. Otherwise, the processor 210 can repeat operation 2201.

In operation 2203, the processor 210 can determine whether the display(e.g., the display 260) is turned off. When the display 260 is turnedoff, the processor 210 can proceed to operation 2207. Otherwise, theprocessor 210 can proceed to operation 2203.

In operation 2207, the processor 210 can determine the periodic sleepschedule information based on the substitute data. According to anembodiment, the processor 210 can select the substitute data for themirroring data.

According to an embodiment, the processor 210 can determine the presetperiodic sleep schedule information in the selected substitute data. Theprocessor 210 can set the periodic sleep schedule information based onthe property of the selected substitute data. For example, the processor210 can select one of multiple schedule information based on theproperty of the selected substitute data and determine the selectedschedule information as the periodic sleep schedule information.

In operation 2209, the processor 210 can send the message including theperiodic sleep schedule information to the source device 2001. Accordingto an embodiment, the processor 210 can change the data communicationperiod according to the periodic sleep schedule information.

In operation 2211, the processor 210 can determine whether substitutedata is received from the source device 2001. According to anembodiment, the processor 210 can receive the substitute data accordingto the periodic sleep schedule information. Upon receiving thesubstitute data, the processor 210 goes to operation 2213. Otherwise,the processor 210 can repeat operation 2211.

In operation 2213, the processor 210 can output the substitute data. Inoperation 2215, the processor 210 can determine whether the display 260is turned on. When the display 260 is turned on, the processor 210 goesto operation 2217. Otherwise, the processor 210 can go to operation2213.

In operation 2217, the processor 210 can set the existing scheduleinformation (e.g., the schedule information corresponding to themirroring data). The processor 210 can send the message including theexisting schedule information to the source device 2001 in operation2219 and then repeat operation 2201. The processor 210 can change thedata communication period according to the existing scheduleinformation.

FIG. 23 illustrates screens which output a state of an electronic deviceaccording to various embodiments. For example, the electronic device canbe the electronic device 101 or the external electronic device 102 ofFIG. 1. For example, the electronic device can be the source device orthe sink device.

According to an embodiment, the electronic device 101 can provide themirroring service to another electronic device and concurrently outputthe state of the other electronic device. The electronic device 1010 candisplay the state of the other electronic device, output the voice, oroutput a combination of them.

For example, when the display of the other electronic device which isthe source device is turned off, the electronic device 101 which is thesink device can receive a message (e.g., the first schedule changerequest message) including the state information of the source device.The electronic device 101 can display a popup window 2303 indicating thedisplay power-off of the source device on a screen 2301 based on thereceived message.

For example, when the display of the other electronic device which isthe sink device is turned off, the electronic device 101 which is thesource device can receive a message (e.g., the third schedule changerequest message) including the state information of the sink device. Theelectronic device 101 can display a popup window 2307 indicating thedisplay power-off of the sink device on a screen 2305 based on thereceived message.

According to an embodiment, the present disclosure can employ othermethods than the method which minimizes the current consumption of theelectronic device by changing the schedule for the data communicationperiod in the substitute data transmission.

According to an embodiment, when the display of the sink device isturned off or the mirroring mode is switched to other mode, the sinkdevice can release a WiFi display (WFD) session based on the WiFi directand maintain the WiFi direct connection. In so doing, since the WFDsession is released, the source device can stop the mirroring datatransmission.

According to an embodiment, when the WFD session is released, the sourceor sink device can set an arbitrary sleep schedule, synchronize witheach other, and thus reduce the current consumption.

According to an embodiment, when the display of the sink device isturned on, the sink device can re-connect the WFD session and releasethe sleep schedule. In so doing, since the WFD session is connected, thesource device can retransmit the mirroring data.

The term “module” as used in the present disclosure can imply, forexample, a unit including hardware, software, or firmware, and can beinterchangeably used with terms, for example, “logic,” “logical block,”“component,” “circuit,” and the like. “Module” can be a minimum unit ofan integral component or can be a part thereof, or minimum unit forperforming one or more functions or a part thereof. “Module” can bemechanically or electrically implemented. For example, “module” caninclude an application-specific integrated circuit (ASIC) chip, afield-programmable gate arrays (FPGAs), or a programmable-logic device,which are known or will be developed, for performing certain operations.

At least part of a device (e.g., modules or functions thereof) or amethod (e.g., operations) according to various embodiments can beimplemented with, for example, an instruction stored in acomputer-readable storage medium as a program module. When theinstruction is executed by a processor (e.g., the processor 120), theprocessor can perform a function corresponding to the instruction. Thecomputer readable recording medium can include a hard disk, a floppydisk, magnetic media (e.g., a magnetic tape), optical media (e.g., aCD-ROM, a DVD), magneto-optical media (e.g., a floptical disk), and aninternal memory. Also, the instruction can include machine code made bya compiler or code executable by a computer using an interpreter. Amodule or a program module according to various embodiments can includeat least one or more of the aforementioned components, omit some ofthem, or further include additional other components.

Operations performed by a module, a program module, or other componentsaccording to various embodiments can be executed in a sequential,parallel, repetitive, or heuristic manner. Some operations can beexecuted in a different order or be omitted, or other operations can beadded.

Although the present disclosure has been described with an exemplaryembodiment, various changes and modifications may be suggested to oneskilled in the art. It is intended that the present disclosure encompasssuch changes and modifications as fall within the scope of the appendedclaims.

What is claimed is:
 1. A portable communication device comprising: adisplay; a communication circuit; and a processor operably connectedwith the display and the communication circuit, the processor configuredto: establish a wireless communication connection with an externalelectronic device using the communication circuit; display first contenton the display; transmit, to the external electronic device, the firstcontent via the wireless communication connection in which the firstcontent is to be displayed via the display and the external electronicdevice concurrently; detect a change in a displaying state of theportable communication device from a first displaying state to a seconddisplaying state, a screen of the display being turned on while theportable communication device is in the first displaying state and thescreen of the display being turned off while the portable communicationdevice is in the second displaying state; and transmit, to the externalelectronic device, second content via the wireless communicationconnection based at least in part on detecting the change in thedisplaying state in which the second content is to be displayed via theexternal electronic device instead of the first content.
 2. The portablecommunication device of claim 1, wherein the processor is furtherconfigured to: perform transmission of the first content according to afirst schedule; and perform transmission of the second content accordingto a second schedule.
 3. The portable communication device of claim 2,wherein: the second schedule includes an active period and an inactiveperiod; and the processor is configured to: perform the transmission ofthe second content during the active period; and refrain from thetransmission of the second content during the inactive period.
 4. Theportable communication device of claim 1, wherein the processor isfurther configured to: detect another change in the displaying state ofthe portable communication device from the second displaying state tothe first displaying state; and transmit, to the external electronicdevice, the first content based at least in part on detecting the otherchange in the displaying state in which the first content is to bedisplayed instead of the second content via the display and the externalelectronic device concurrently.
 5. The portable communication device ofclaim 1, wherein the processor is further configured to: operate theportable communication device in a first power state; and operate theportable communication device in a second power state including a powerthat is lower than a power of the first power state.
 6. A method of aportable communication device, the method comprising: establishing awireless communication connection with an external electronic device;displaying first content; transmitting, to the external electronicdevice, the first content via the wireless communication connection inwhich the first content is to be displayed via the display and theexternal electronic device concurrently; detecting a change in adisplaying state of the portable communication device from a firstdisplaying state to a second displaying state, a screen of the displaybeing turned on while the portable communication device is in the firstdisplaying state and the screen of the display being turned off whileportable communication device is in the second displaying state; andtransmitting, to the external electronic device, second content via thewireless communication connection based at least in part on detectingthe change in the displaying state in which the second content is to bedisplayed via the external electronic device instead of the firstcontent.
 7. The method of claim 6, further comprising: performingtransmission of the first content according to a first schedule; andperforming transmission of the second content according to a secondschedule.
 8. The method of claim 7, further comprising: performing thetransmission of the second content during an active period; andrefraining from the transmission of the second content during aninactive period, wherein the second schedule includes the active periodand the inactive period.
 9. The method of claim 6, further comprising:detecting another change in the displaying state of the portablecommunication device from the second displaying state to the firstdisplaying state; and transmitting, to the external electronic device,the first content based at least in part on detecting the other changein the displaying state in which the first content is to be displayedinstead of the second content via the display and the externalelectronic device concurrently.
 10. The method of claim 6, furthercomprising: operating the portable communication device in a first powerstate; and operating the portable communication device in a second powerstate including a power that is lower than a power of the first powerstate.